재 현
위장 본문
728x90
def solution(clothes):
d = dict()
for i,j in clothes:
if j not in d:
d[j] = 1
else:
d[j] += 1
r = 1
for i in d.values():
r *= (i+1)
return r - 1
728x90
'Coding test' 카테고리의 다른 글
방금 그 곡 (0) | 2021.10.21 |
---|---|
예산 (0) | 2021.10.19 |
기능개발 (0) | 2021.10.17 |
숫자 문자열과 영단어 (0) | 2021.10.13 |
카카오 신규아이디 추천 (0) | 2021.10.13 |