link/cut tree
[kudsource.git] / POJ / 3737.cc
blob74c1fb29b85fb3dfdf69a8eac57676db286afc21
1 #include <cstdio>
2 #include <cmath>
4 const long double PI=acos(-1.0);
6 using namespace std;
8 int main()
10 double s;
11 while (~scanf("%lf",&s))
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);
18 return 0;