mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-24 03:08:49 +00:00
B2027 计算球的体积
R71618584
This commit is contained in:
parent
b069920771
commit
d7f9428557
17
Luogu/B2027/B2027.cpp
Normal file
17
Luogu/B2027/B2027.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user