Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a, b, c;
- cin >> a>> b >> c;
- long long int n = ceil( 1.0 * a / c );
- long long int m = ceil( 1.0 * b / c );
- cout << n * m;
- exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment