Created
December 6, 2023 13:25
-
-
Save gonaumov/089266f6e640d6331655da798ce3b514 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor_name = input() | |
academy_scores = float(input()) | |
number_of_evaluators = int(input()) | |
needed_scores = 1250.5 | |
for _ in range(number_of_evaluators): | |
evaluator_name = input() | |
scores_evaluator_gave = float(input()) | |
received_scores = (len(evaluator_name) * scores_evaluator_gave) / 2 | |
academy_scores += received_scores | |
if academy_scores > needed_scores: | |
print(f"Congratulations, {actor_name} got a nominee for leading role with {academy_scores:.1f}!") | |
break | |
else: | |
print(f"Sorry, {actor_name} you need {needed_scores - academy_scores:.1f} more!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment