CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Monday, November 7, 2016
Uri 2029 - Honey Reservoir
#
include
<
stdio.h
>
#
define
PI
3.14
int
main
()
{
double
v, r, h, d, a;
int
tmp;
while
(
scanf
(
"
%lf
%lf
"
, &v, &d)!=EOF)
{
r = d/
2
;
a = PI*r*r;
h = v/a;
printf
(
"
ALTURA =
%.2lf
\n
"
,h);
printf
(
"
AREA =
%.2lf
\n
"
,a);
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment