Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- long double n, m, a;
- cin >> n >> m >> a;
- cout << fixed << setprecision(0) << ceil(m/a)*ceil(n/a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement