5 1 13 22 62 155
1.05 176.98 506.84 4025.43 25158.92
#include<stdio.h>
#define pi 3.1415926 //float
只能保留6位精度的小数。。。。。。。。。
int main(){
int
test;
double
m; //所以这里只能用double型。。。。。。。。。。。
scanf("%d",&test);
while(test--){
scanf("%lf",&m);
printf("%.2lf\n",m*m*pi/3.0);
}
return 0;
}
原文:http://www.cnblogs.com/dreamgoing/p/3579243.html