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 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