-
위장 [Python3]2018~2019/Level 2 2018. 10. 1. 22:56
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
def solution(clothes): answer = 1 category = dict() for i in clothes: if i[1] in category: category[i[1]] += 1 else: category[i[1]] = 1 for num in category.values(): answer *= num+1 return answer-1
'2018~2019 > Level 2' 카테고리의 다른 글
올바른 괄호 [Python3] (0) 2018.10.02 다음 큰 숫자 [JavaScript] (0) 2018.10.01 전화번호 목록 [Python3] (0) 2018.10.01 주식 가격 [Python3] (0) 2018.10.01 124 나라의 숫자 (0) 2018.10.01