Advertisement
CR7CR7

goro

May 6th, 2022
1,120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. N=int(input())
  2. G_s=int(input())
  3. G_latency=int(input())
  4. P_s=int(input())
  5. P_latency=int(input())
  6.  
  7. '''
  8. There are 5 targets.
  9. George's speed is 1 and the latency is 1. The latency is applied twice.
  10. So (5 targets * 1 sec) = 5 + 1 sec + 1 sec = 7 sec
  11. Peter's speed is 2 and the latency is 2. The latency is applied twice.
  12. So (5 targets * 2 sec) = 10 + 2 sec + 2 sec = 14 sec
  13.  
  14. So George wins this round!
  15. '''
  16. G_score =(N*G_s)+G_latency+G_latency
  17. P_score=(N*P_s)+P_latency+P_latency
  18.  
  19. if G_score < P_score:
  20.     print('George')
  21. elif G_score > P_score:
  22.     print('Peter')
  23. elif G_score == P_score:
  24.     print('Draw')
  25.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement