【Codeforces】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;
}
#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;
}