Files
python/TangDou/AoSaiYiBenTong/YBT1030.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

18 lines
381 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
//cin读入优化
std::ios::sync_with_stdio(false);
double r;
cin >> r;
//C语言版本保留两位小数
//printf("%.2lf\n", 4 * 3.14 * r * r * r / 3);
//C++版本保留两位小数
cout << fixed << setprecision(2) << 4 * 3.14 * r * r * r / 3 << endl;
return 0;
}