【Codeforces】CF1A Theatre Square (题解)

CF1A Theatre Square


题解:

#include <iostream>
using namespace std;
int main()
{
	long long a,m,n;
	cin>>n>>m>>a;
	cout<<((n-1)/a+1)*((m-1)/a+1);
	return 0;
}
原文地址:https://www.cnblogs.com/BorisDimitri/p/13546641.html