Codeforces : Theatre Square Solution//Author: Humaun Kabir#include<stdio.h>#include<math.h>int main(){ double n,m,a; double ans; while(scanf("%lf %lf %lf",&n,&m,&a)==3){ double row = ceil(n/a); double column = ceil(m/a); ans =row * column; printf("%.0lf\n",ans); } return 0;}
Problem Link : http://codeforces.com/problemset/problem/1/A
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)