untitle

public
yousefkarem91 Sep 12, 2024 Never 48
Clone
C++ past.cpp 16 lines (15 loc) | 239 Bytes
1
#include <iostream>
2
#include <iomanip>
3
using namespace std;
4
5
int main()
6
{
7
int n,m,a;
8
cin>>n>>m>>a;
9
long long cnt1=n/a;
10
if(n%a!=0)
11
cnt1++;
12
int cnt2=m/a;
13
if(m%a!=0)
14
cnt2++;
15
cout<<cnt1*cnt2;
16
}