← Back to List

2163번: 초콜릿 자르기 ↗

Solutions

C++14
98 B | 98 chars
#include <iostream>
using namespace std;
int N,M;
int main()
{
	cin>>N>>M;
	cout<<N*(M-1)+(N-1);
}