123456789101112 |
- #include <bits/stdc++.h>
- using namespace std;
- const double pi = atan(1.0) * 4;
- int main(int argc, char const *argv[]) {
- for (double r; cin >> r;) {
- cout << setiosflags(ios::fixed) << setprecision(3)
- << 4.0 * pi * pow(r, 3) / 3 << endl;
- }
- return 0;
- }
|