Skip to content

Baekjoon 10102

1. Problem

문제 확인하기

2. Solution (Python, memory: 31256KB, time: 40ms)

v = int(input())
vote = list(str(input()))

count_A = vote.count('A')
count_B = len(vote) - count_A

if count_A > count_B:
    print('A')
elif count_A == count_B:
    print('Tie')
else:
    print('B')