#include<iostream> #include<math.h> #include<iomanip> #define PI 3.1415927 using namespace std; void main(){ double r; while(cin>>r&&r>=0){ double q=4.0/3.0*PI*r*r*r; cout<<setprecision(3)<<fixed<<q<<endl; } }
杭电ACM 第2002题
最新推荐文章于 2022-08-19 10:26:18 发布