题目:http://acm.hdu.edu.cn/showproblem.php?pid=2002
#include <stdio.h>
#define PI 3.1415927
int main()
{
double r;
while(scanf("%lf",&r)!=EOF)
printf("%.3lf\n",4/3.0*PI*r*r*r);
return 0;
}
HDOJ 2002 计算球体积
阅读 65
2022-08-22
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2002
#include <stdio.h>
#define PI 3.1415927
int main()
{
double r;
while(scanf("%lf",&r)!=EOF)
printf("%.3lf\n",4/3.0*PI*r*r*r);
return 0;
}
相关推荐
精彩评论(0)