thecodecird

Height and Distance!

Sep 27th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include "bits/stdc++.h"
  2.  
  3. #define faster ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
  4.  
  5. #define ll long long int
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10.  
  11. {
  12.     faster
  13.     ll t;
  14.     cin >> t;
  15.     for(int i=0;i<t;i++)
  16.     {
  17.         ll x,y,z;
  18.  
  19.         cin>>x>>y>>z;
  20.  
  21.         cout<<(ll)((double)x/(double)sqrt((double)(y-z)/5.0))<<"\n";
  22.  
  23.     }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment