Asif_Anwar

geometry

Nov 7th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4. #define ll long long
  5. #define pb push_back
  6. #define pi acos(-1)
  7. int main()
  8. {
  9.     int t;
  10.     cin >> t;
  11.     while(t--) {
  12.         double x;
  13.         cin >> x;
  14.         double ans = 2.0 * sqrt(x/(3-(pi/2)));
  15.         cout << fixed << setprecision(10) << ans << endl;
  16.     }
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment