initial commit

This commit is contained in:
ShazidMahsrafi 2023-06-07 20:14:37 +06:00
parent 434b66191b
commit 500bae4ec1

22
1A-Theater Square/1A.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n, m, a, div, len, wid;
cin >> n >> m >> a;
div = n / a;
if (n % a == 0)
len = div * a;
else
len = (div + 1) * a;
div = m / a;
if (m % a == 0)
wid = div * a;
else
wid = (div + 1) * a;
div = (len * wid) / (a * a);
cout << div;
}