SHARE
TWEET

Untitled

Veselina_M Feb 21st, 2020 63 in 139 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import floor
  2.  
  3. old_record_sec=float(input())
  4. distance_m=float(input())
  5. sec_for_1m=float(input())
  6.  
  7. delay=(floor(distance_m/15))*12.5
  8. Ivans_time=(sec_for_1m*distance_m)+delay
  9.  
  10. difference=abs(Ivans_time-old_record_sec)
  11.  
  12. if Ivans_time<old_record_sec:
  13.     print(f"Yes, he succeeded! The new world record is {Ivans_time:.2f} seconds.")
  14. elif Ivans_time>=old_record_sec:
  15.     print(f"No, he failed! He was {difference:.2f} seconds slower.")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top