D.cpp 238 B

123456789101112
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. const double pi = atan(1.0) * 4;
  4. int main() {
  5. for (double r; cin >> r;) {
  6. cout << fixed << setprecision(3)
  7. << 4.0 * pi * pow(r, 3) / 3 << endl;
  8. }
  9. return 0;
  10. }