Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created December 6, 2023 13:25
Show Gist options
  • Save gonaumov/089266f6e640d6331655da798ce3b514 to your computer and use it in GitHub Desktop.
Save gonaumov/089266f6e640d6331655da798ce3b514 to your computer and use it in GitHub Desktop.
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