Advertisement
rengetsu

CBR_1A

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