Advertisement
aneliabogeva

Oscars

Jun 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. name = input()
  2. points = float(input())
  3. number_judges = int(input())
  4. sum_point = 0
  5. counter = 0
  6.  
  7. for i in range(0, number_judges):
  8. name_judge = input()
  9. points_judge = float(input())
  10. total_points_jusge = (int(len(name_judge))*points_judge)/2
  11. sum_point = points + total_points_jusge
  12. points = sum_point
  13. if points > 1250.5:
  14. print(f"Congratulations, {name} got a nominee for leading role with {(sum_point):.1f}!")
  15. break
  16. counter +=1
  17. if counter >= number_judges:
  18. print(f"Sorry, {name} you need {abs(1250.5 - sum_point):.1f} more!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement