[恢]hdu 2002

2011-12-12 03:35:42

地址:http://acm.hdu.edu.cn/showproblem.php?pid=2002

题意:中文题。

思路:球体体积公式:V=4*Pi*r*r*r/3.0

代码:

# include <stdio.h>


#define PI 3.1415927


int main ()
{
double r ;
while (~scanf ("%lf", &r))
printf ("%.3lf\n", 4*PI*r*r*r/3.0) ;
return 0 ;
}



原文地址:https://www.cnblogs.com/lzsz1212/p/2314446.html