mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-24 12:28:49 +00:00
13 lines
208 B
C++
13 lines
208 B
C++
|
// R38986370
|
||
|
|
||
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
int a, n, m;
|
||
|
cin >> n >> m >> a;
|
||
|
cout << (long long)(ceil(n / (double)a) * ceil(m / (double)a)) << endl;
|
||
|
return 0;
|
||
|
}
|