Haribo ML, AI, MATH, Algorithm

의상

2021-01-19
Haribo

의상

코드

from collections import Counter
from functools import reduce
from operator import mul
def solution(clothes) :
    closet = Counter(kind  for name, kind in clothes)
    total_case = reduce(mul, [c + 1 for c in closet.values()], 1) - 1
    return total_case


Similar Posts

이전 포스트 메뉴 리뉴얼

다음 포스트 전화번호 목록

Comments