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