于墨轩 • 26天前
#include <bits/stdc++.h>
using namespace std;
const double PI = 3.1415926;
int main() {
double radius;
cin >> radius;
double volume = (4.0 / 3) * PI * radius * radius * radius;
cout << fixed << setprecision(4) << volume << endl;
return 0;
}
评论: