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