Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
[codeforce] A. Theatre Square
SUBMITTED BY:
Guest
DATE:
March 5, 2014, 2:47 p.m.
FORMAT:
C++
SIZE:
458 Bytes
Raw
Download
Tweet
HITS:
842
Go to comments
Report
//Haha TTpro
//A. Theatre Square
//http://codeforces.com/problemset/problem/1/A
#include
<iostream>
using
namespace
std
;
int
main
()
{
long
long
int
m
,
n
,
a
;
cin
>>
n
>>
m
>>
a
;
long
long
int
ngang
,
doc
;
ngang
=
m
/
a
;
if
(
m
%
a
!=
0
)
{
ngang
++
;
}
doc
=
n
/
a
;
if
(
n
%
a
!=
0
)
{
doc
++
;
}
long
long
int
tong
;
tong
=
ngang
*
doc
;
cout
<<
tong
;
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus