Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = input()
- points = float(input())
- jury_num = int(input())
- for i in range(jury_num):
- jury_name = input()
- jury_points = float(input())
- points += len(jury_name) * jury_points / 2
- if points > 1250.5:
- break
- if points <= 1250.5:
- print(f'Sorry, {name} you need {1250.5 - points:.1f} more!')
- else:
- print(f'Congratulations, {name} got a nominee for leading role with {points:.1f}!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement