杭电OJ2002

#include <iostream>
#include <iomanip>
using namespace std;
#define PI 3.1415927
int main()
{
	double r, v;
	while (cin >> r)
	{
		v = PI*r*r*r*(4.0 / 3);
		cout << setprecision(3) << fixed << v << endl;
	}
}

猜你喜欢

转载自blog.csdn.net/weixin_42265486/article/details/83505508