Thursday, November 13, 2014

CodeForces Solution of 1A. Theatre Square

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main()
{
    double n, m, a;
    while(scanf("%lf%lf%lf", &n, &m, &a)==3)
    {
        printf("%0.0lf\n", ceil(n/a)*ceil(m/a));
    }
}

No comments:

Post a Comment

Compare equality of two string in C

#include <stdio.h> #include<string.h> int main() {     char* country = "Bangladesh";     char* country2;     ...