repo.or.cz
/
kudsource.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
link/cut tree
[kudsource.git]
/
POJ
/
3737.cc
blob
74c1fb29b85fb3dfdf69a8eac57676db286afc21
1
#include <cstdio>
2
#include <cmath>
3
4
const long double
PI
=
acos
(-
1.0
);
5
6
using namespace
std
;
7
8
int
main
()
9
{
10
double
s
;
11
while
(~
scanf
(
"%lf"
,&
s
))
12
{
13
double
r
=
sqrt
(
s
/
PI
/
4
),
h
=
sqrt
(
2
*
s
/
PI
);
14
double
l
=
sqrt
(
r
*
r
+
h
*
h
);
15
double
v
=
PI
*
r
*
r
*
h
/
3.0
;
16
printf
(
"%.2lf
\n
%.2lf
\n
%.2lf
\n
"
,
v
,
h
,
r
);
17
}
18
return
0
;
19
}