rengetsu

Codeforces_1A

Jul 18th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. //Codeforces Round 1A
  2. #include <cmath>
  3. #include <iomanip>
  4. #include <iostream>
  5. using namespace std;
  6. int main()
  7. {
  8.     long double n, m, a;
  9.     cin >> n >> m >> a;
  10.     cout << fixed << setprecision(0) << ceil(m/a)*ceil(n/a);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment