Codeforces “1A Theatre Square” solution( Bangla ) | Cpp language

**Before watching this make sure that you’ve tried enough**

#include<iostream>

using namespace std;

int main()
{
   long long m, n, a, x, y;

   cin >> m >> n >> a;

   if(m % a == 0){x = m / a;}

   else{x = m / a + 1;}

   if(n % a == 0){y = n / a;}

   else{y = n / a + 1;}

   cout << x * y << endl;

   return 0;
 
}

 

If this solution helped you, please share this with your friends.

Leave a Comment