EEEEEE boy

Revision ru2, by adorable, 2019-12-18 14:26:48

1A - Theatre Square

include <bits/stdc++.h>

using namespace std; int main(){ long long n,m,a,ans = 1; cin>>n>>m>>a; if(n%a!=0) { ans*=(n/a+1); } else { ans*=n/a; } if(m%a!=0) { ans*=(m/a+1); } else { ans*=m/a; } cout<<ans; }

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru2 Russian adorable 2019-12-18 14:26:48 332
ru1 Russian adorable 2019-12-18 14:26:12 640 Первая редакция (опубликовано)