A. Theatre Square | CodeForces - Samsus Salehin Sabbir

Header Ads

A. Theatre Square | CodeForces

Problem Link : A. Theatre Square

Solution :
      Develop by
 Samsus Salehin Sabbir 

  1. #include <iostream>
  2. using namespace std;

  3. int main() {
  4. // your code goes here
  5. long long  row , col , m,n,a;
  6. cin >> n >> m >> a;
  7. row = n/a;
  8. if(n%a) row++;
  9. col = m/a;
  10. if(m%a) col++;
  11. cout << row*col << endl;
  12. return 0;
  13. }

No comments

Powered by Blogger.