-Code
for _ in range(int(input())):
p_list = list(map(int, input().split()))
column = {}
for i in range(1, len(p_list), 2):
x, y = p_list[i], p_list[i + 1]
if y not in column:
column[y] = 1
else:
column[y] += 1
print(max(column.values()))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 6856번 Roll the Dice (0) | 2025.02.06 |
---|---|
[백준/파이썬] 9622번 Cabin Baggage (0) | 2025.02.05 |
[백준/파이썬] 9945번 Centroid of Point Masses (0) | 2025.02.04 |
[백준/파이썬] 1213번 팰린드롬 만들기 (0) | 2025.02.03 |
[백준/파이썬] 6162번 Superlatives (0) | 2025.02.02 |