a53

melc

a53
May 9th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. long double v,d;
  7. cin>>v>>d;
  8. if(v==d)
  9. {
  10. cout<<1;
  11. return 0;
  12. }
  13. v/=3.60;
  14. d/=v;
  15. d=round(d);
  16. d/=60;
  17. cout<<round(d);
  18. }
Add Comment
Please, Sign In to add comment