A. Theatre Square | CodeForces
Problem Link : A. Theatre Square
Solution :
Develop by Samsus Salehin Sabbir
Solution :
Develop by Samsus Salehin Sabbir
- #include <iostream>
- using namespace std;
- int main() {
- // your code goes here
- long long row , col , m,n,a;
- cin >> n >> m >> a;
- row = n/a;
- if(n%a) row++;
- col = m/a;
- if(m%a) col++;
- cout << row*col << endl;
- return 0;
- }
No comments