0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 00:48:47 +00:00

B2027 计算球的体积

R71618584
This commit is contained in:
Baoshuo Ren 2022-03-17 20:04:18 +08:00
parent b069920771
commit d7f9428557
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

17
Luogu/B2027/B2027.cpp Normal file
View File

@ -0,0 +1,17 @@
#include <iomanip>
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
const double pi = 3.14;
double r;
int main() {
std::ios::sync_with_stdio(false);
cin >> r;
cout << std::fixed << std::setprecision(5) << 4.0 / 3.0 * pi * r * r * r << endl;
return 0;
}