t = int(input())
for q in range(t):
n = int(input())
lst = list(map(int,input().split()))
lst_num = [0]*101
for i in range(1000):
lst_num[lst[i]] += 1
maxx = max(lst_num)
count = lst_num.count(maxx)
while count !=1:
count -= 1
a = lst_num.index(maxx)
lst_num[a] = 0
ans = lst_num.index(maxx)
print('#%d' % n,ans)
'problem solving' 카테고리의 다른 글
1206. [S/W 문제해결 기본] 1일차 - View (0) | 2019.09.17 |
---|---|
5642. [Professional] 합 (0) | 2019.09.15 |
1288. 새로운 불면증 치료법 (0) | 2019.09.14 |
1928. Base64 Decoder (0) | 2019.09.14 |
1940. 가랏! RC카! (0) | 2019.09.14 |
댓글