Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capasity = int(input())
- fans = int(input())
- sectors = ["A", "B", "V", "G"]
- places = [0, 0, 0, 0]
- for i in range(fans):
- sec_loc = input()
- index = sectors.index(sec_loc)
- if sec_loc in sectors:
- places[index] += 1
- print(f"{((places[0] / fans) * 100):.2f}%")
- print(f"{((places[1] / fans) * 100):.2f}%")
- print(f"{((places[2] / fans) * 100):.2f}%")
- print(f"{((places[3] / fans) * 100):.2f}%")
- print(f"{((fans / capasity) * 100):.2f}%")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement