exDotaPro

15_june_2019_5_oscars

Jan 21st, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. actor_name = input()
  2. academy_points = float(input())
  3. judges_count = int(input())
  4.  
  5. for judges in range(judges_count):
  6.     judge_name = input()
  7.     given_points = float(input())
  8.  
  9.     judge_points = (len(judge_name) * given_points) / 2
  10.     academy_points += judge_points
  11.  
  12.     if academy_points >= 1250.5:
  13.         print(f'Congratulations, {actor_name} got a nominee for leading role with {academy_points:.1f}!')
  14.         exit(0)
  15.  
  16. print(f'Sorry, {actor_name} you need {1250.5 - academy_points:.1f} more!')
Add Comment
Please, Sign In to add comment