Advertisement
anton_d

Oscars

Jan 3rd, 2022 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. actor_name = input()
  2. academy_points = float(input())
  3. judges = int(input())
  4.  
  5. base = 1250.5
  6.  
  7. for committee in range(judges):
  8.     judges_name = input()
  9.     judges_points = float(input())
  10.     academy_points += ((len(judges_name) * judges_points) / 2)
  11.     if academy_points > base:
  12.         print(f"Congratulations, {actor_name} got a nominee for leading role with {academy_points:.1f}!")
  13.         break
  14. if academy_points < base:
  15.     diff = base - academy_points
  16.     print(f"Sorry, {actor_name} you need {diff} more!")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement