fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. int n, x, y, z, r, a, b, c, d;
  9. cin>>n;
  10. for(int i=0; i<n; i++){
  11. cin>>x>>y>>z>>r>>a>>b>>c>>d;
  12. cout<<setprecision(12)<<M_PI*r*r<<endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4288KB
stdin
3
2 3 5 7 1 2 4 8
4 5 3 9 2 6 8 10
23 45 87 8 10 28 65 89
stdout
153.938040026
254.469004941
201.06192983