D.cpp 284 B

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