Advertisement
Spocoman

06. Oscars

Dec 25th, 2021 (edited)
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. name = input()
  2. points = float(input())
  3. jury_num = int(input())
  4.  
  5. for i in range(jury_num):
  6.     jury_name = input()
  7.     jury_points = float(input())
  8.     points += len(jury_name) * jury_points / 2
  9.     if points > 1250.5:
  10.         break
  11.  
  12. if points <= 1250.5:
  13.     print(f'Sorry, {name} you need {1250.5 - points:.1f} more!')
  14. else:
  15.     print(f'Congratulations, {name} got a nominee for leading role with {points:.1f}!')
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement