문제
풀이
import collections
def solution(numbers):
answer = 0
dic = collections.defaultdict(int)
for x in numbers:
if str(x) not in dic:
dic[str(x)]+=1
for x in range(10):
if str(x) not in dic:
answer+=x
return answer
반응형