0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 20:56:29 +00:00
OI-codes/Luogu/CF1A/CF1A.cpp

13 lines
208 B
C++
Raw Normal View History

2020-09-28 12:13:24 +00:00
// 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;
}