Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capacity_stadium = int(input())
- fans = int(input())
- counter_A = 0
- counter_B = 0
- counter_V = 0
- counter_G = 0
- for fan in range(fans):
- sector = input()
- if sector == "A":
- counter_A += 1
- elif sector == "B":
- counter_B += 1
- elif sector == "V":
- counter_V += 1
- elif sector == "G":
- counter_G += 1
- for i in [counter_A, counter_B, counter_V, counter_G]:
- print(f'{i / fans * 100:.2f}%')
- print(f'{fans / capacity_stadium * 100:.2f}%')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement