본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 20155번 우리 집 밑에 편의점이 있는데

by 현장 2023. 5. 1.

-Code

n, m = map(int, input().split())
brands = list(map(int, input().split()))
res = [0] * (n + 1)

for i in brands:
    res[i] += 1

print(max(res))