Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number_of_easter_breads = int(input())
- best_score = 0
- current_score = 0
- best_chef = ''
- for each_easter_bread in range(number_of_easter_breads):
- bread_maker = input()
- command = input()
- current_score = 0
- while command != 'Stop':
- score = int(command)
- current_score += score
- command = input()
- print(f'{bread_maker} has {current_score} points.')
- if current_score > best_score:
- best_score = current_score
- best_chef = bread_maker
- print(f'{bread_maker} is the new number 1!')
- print(f'{best_chef} won competition with {best_score} points!')
Advertisement
Add Comment
Please, Sign In to add comment