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

[프로그래머스/파이썬] 폰켓몬

by 현장 2021. 5. 8.

-코드

def solution(arr):
    r1 = len(arr)
    r2 = len(list(set(arr)))
    return min(r1 // 2, r2)