You are viewing a single comment's thread. Return to all comments →
This one works good :)
long long int solve(int n, int m) { long long int r=n-1; long long int c=m-1; long long int res=(r+c)+(r*c); return res;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Cutting Paper Squares
You are viewing a single comment's thread. Return to all comments →
This one works good :)
long long int solve(int n, int m) { long long int r=n-1; long long int c=m-1; long long int res=(r+c)+(r*c); return res;
}