#include<stdio.h>
#include<iostream>
#define p 3.1415927
int main()
{
double r;
while(std::cin>>r)
printf("%.3f\n",r*r*r*p*4/3);
return 0;
}
Saturday, 21 March 2009
HOJ ( acm.hdu.edu.cn ) 2002
Subscribe to:
Post Comments (Atom)
我爱水题,爱死水题了。
#include<stdio.h>
#include<iostream>
#define p 3.1415927
int main()
{
double r;
while(std::cin>>r)
printf("%.3f\n",r*r*r*p*4/3);
return 0;
}
No comments:
Post a Comment