G2A Many GEOs
SHARE
TWEET

2_mountain_run

a guest Mar 28th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import floor as fl
  2.  
  3. record_in_sec = float(input())
  4. distance_in_m = float(input())
  5. time_per_m = float(input())
  6.  
  7. time_in_sec = distance_in_m * time_per_m + fl(distance_in_m / 50) * 30
  8.  
  9. if time_in_sec < record_in_sec:
  10.     print(f'Yes! The new record is {time_in_sec:.2f} seconds.')
  11. else:
  12.     print(f'No! He was {time_in_sec - record_in_sec:.2f} seconds slower.')
RAW Paste Data
Ledger Nano X - The secure hardware wallet
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