CodeForces Solution 1A-TheaterSquare - Solution in C++ | Math - Online Judge Solution

Latest

It is a free Online judges problems solution list. Here you can find UVA online Judge Solution, URI Online Judge Solution, Code Marshal Online Judge Solution, Spoz Online Judge Problems Solution

Tuesday, May 2, 2017

CodeForces Solution 1A-TheaterSquare - Solution in C++ | Math

CodeForces Solution 1A-TheaterSquare - Solution in C++ | Math


Codeforces online judge solution 1A - TheaterSquare

CodeForces Online Judge Solution  1A - TheaterSquare | Math
CodeForces Main Problem Link - http://codeforces.com/problemset/problem/1/A

Problem Name: CodeForces Problem 1A - TheaterSquare
Problem Number : CodeForces Problem 1A - TheaterSquare Solution
Online Judge : CodeForces Online Judge Solution
Category: Math
Solution Language : C plus plus

CodeForces Solution 1A-TheaterSquare - Solution in C++ | Math

CodeForces Solution 1A - TheaterSquare Code in CPP:


#include <iostream>
using namespace std;

int main(){
    unsigned long long length = 0, width = 0, stone = 0;  cin >> length >> width >> stone;
    unsigned long long numStones = (length/stone + (length % stone > 0) ) * (width/stone + (width % stone > 0) );
    cout << numStones << endl;
    return 0;
}



Tags: CodeForces Online Judge Solution, Codeforces TheaterSquare Solution, Codeforces OJ solution list

No comments:

Post a Comment