Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- team_A = [1] * 11
- team_B = [1] * 11
- cards = input().split(' ')
- for card in cards:
- tokens = card.split('-')
- team = tokens[0]
- player = int(tokens[1])
- idx = player - 1
- if team == 'A':
- team_A[idx] = 0
- elif team == 'B':
- team_B[idx] = 0
- print(f'Team A - {sum(team_A)}; Team B - {sum(team_B)}')
- if sum(team_A) < 7 or sum(team_B) < 7:
- print('Game was terminated')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement