Online Judge【杭电】[2002]计算球体积问题描述 问题分析不用pow是因为据说调用函数没有直接乘运算快…… 1 2 3 4 5 6 7 8 9 10 11 12 #include<stdio.h> #define PI 3.1415927 int main() { double V,r; while(scanf("%lf",&r)!=EOF) { V=(PI*r*r*r*4)/3; printf("%.3lf\n",V); } return 0; }