题解
2025-04-30 16:47:54
发布于:江苏
4阅读
0回复
0点赞
此题可能考察的是自定义:#define
和保留小数输出
#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926
double r;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cin >> r;
double V = (PI * (r * r * r)) / 3 * 4;
printf("%.4f\n", V);
return 0;
}
这里空空如也
有帮助,赞一个