http://acm.hdu.edu.cn/showproblem.php?pid=2002
#include<iostream> #include<stdio.h> #include<math.h> #include<queue> #include<stack> #include<algorithm> #define PI 3.1415927 using namespace std; int main() { double r; while(~scanf("%lf",&r)) { printf("%.3lf\n",4.0*PI*r*r*r/3); } return 0; }
时间: 2024-12-21 18:44:29