Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. actors_name = input()
  2. academy_points = float(input())
  3. judges_count = int(input())
  4. total_points = 0
  5. count = 0
  6. for judge in range (1, judges_count+1):
  7. judge_name = input()
  8. judge_points = float(input())
  9. for letter in judge_name:
  10. count += 1
  11. total_points += (judge_points * count) / 2
  12. count = 0
  13. if total_points + academy_points >= 1250.5:
  14. print("")
  15. print(f"Congratulations, {actors_name} got a nominee for leading role with {total_points+academy_points:.1f}!")
  16. break
  17. if total_points + academy_points < 1250.5:
  18. 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