Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actors_name = input()
- points = float(input())
- people = int(input())
- ascii_sum = 0
- actor_mark = 0
- total = 0
- all = 0
- while people != 0:
- if points >= 0:
- all = points
- points = 0
- jury_name = input()
- mark = float(input())
- people -= 1
- ascii_sum += len(jury_name)
- actor_mark = (ascii_sum * mark) / 2
- total += actor_mark + all
- if people != 0:
- ascii_sum = 0
- if total >= 1250.5:
- break
- if total >= 1250.5:
- print(f"Congratulations, {actors_name} got a nominee for leading role with {total:.1f}!")
- else:
- print(f"Sorry, {actors_name} you need {abs(1250.5 - total):.1f} more!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement