Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N=int(input())
- G_s=int(input())
- G_latency=int(input())
- P_s=int(input())
- P_latency=int(input())
- '''
- There are 5 targets.
- George's speed is 1 and the latency is 1. The latency is applied twice.
- So (5 targets * 1 sec) = 5 + 1 sec + 1 sec = 7 sec
- Peter's speed is 2 and the latency is 2. The latency is applied twice.
- So (5 targets * 2 sec) = 10 + 2 sec + 2 sec = 14 sec
- So George wins this round!
- '''
- G_score =(N*G_s)+G_latency+G_latency
- P_score=(N*P_s)+P_latency+P_latency
- if G_score < P_score:
- print('George')
- elif G_score > P_score:
- print('Peter')
- elif G_score == P_score:
- print('Draw')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement