initial commit
This commit is contained in:
parent
434b66191b
commit
500bae4ec1
22
1A-Theater Square/1A.cpp
Normal file
22
1A-Theater Square/1A.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long long n, m, a, div, len, wid;
|
||||
cin >> n >> m >> a;
|
||||
div = n / a;
|
||||
if (n % a == 0)
|
||||
len = div * a;
|
||||
else
|
||||
len = (div + 1) * a;
|
||||
|
||||
div = m / a;
|
||||
if (m % a == 0)
|
||||
wid = div * a;
|
||||
else
|
||||
wid = (div + 1) * a;
|
||||
|
||||
div = (len * wid) / (a * a);
|
||||
|
||||
cout << div;
|
||||
}
|
Loading…
Reference in New Issue
Block a user