Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actors_name = input()
- academy_points = float(input())
- judges_count = int(input())
- total_points = 0
- count = 0
- for judge in range (1, judges_count+1):
- judge_name = input()
- judge_points = float(input())
- for letter in judge_name:
- count += 1
- total_points += (judge_points * count) / 2
- count = 0
- if total_points + academy_points >= 1250.5:
- print("")
- print(f"Congratulations, {actors_name} got a nominee for leading role with {total_points+academy_points:.1f}!")
- break
- if total_points + academy_points < 1250.5:
- print(f"Sorry, {actors_name} you need {1250.5 - (total_points+academy_points):.1f} more!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement