Advertisement
jeff69

Fuck Hussain

Sep 20th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 0.43 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long LL;
  4. typedef long double ld;
  5. LL v,t,k;
  6. const LL Re=6400000;
  7. /*
  8. v is the velocity of the ship
  9. t the expected arrival time
  10. k the hight of the tower / mountain
  11. Re is the Earth radius
  12. All units are in SI
  13. */
  14.  int main()
  15. {
  16.   cin>>v>>t>>k;
  17.   ld theta =acos(Re*1.0/(Re*1.0 + k));
  18.   ld dis=Re*theta;
  19.   if(dis>v*t)puts("YES");
  20.   else puts("NO");
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement