문제 풀이
[python] 백준 10102번
_tera_
2021. 6. 8. 01:29
v = int(input())
vote = input()
A=B=0
for i in range(len(vote)):
if vote[i]=='A':
A += 1
else: B+=1
if A > B:
print("A")
elif A ==B:
print("Tie")
else: print("B")