OJ-Problems-Source/HDOJ/2002_autoAC.cpp

11 lines
196 B
C++
Raw Normal View History

#include <math.h>
#include <stdio.h>
#define PI 3.1415927
int main(void)
{
double r;
while (scanf("%lf", &r) != EOF)
printf("%.3lf\n", 4.0*PI*r*r*r/3.0);
return 0;
}