문제풀이/프로그래머스
[프로그래머스][Lv1] - 수식 최대화(파이썬/Python)
얄루몬
2022. 1. 1. 17:10
def solution(nums):
answer = 0
n = len(nums)//2
a = len(set(nums)) #중복 제거를 위한 set 사용!
if n > a:
return a
else:
return n