python7 프로그래머스 | Python | 해시 | 의상 (Lv.2) https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr정답코드from collections import Counterdef solution(clothes): # 의상 종류별로 개수 세기 counter = Counter([category for _, category in clothes]) # 조합의 수 계산 (각 카테고리별 의상 수 + 1(선택하지 않는 경우)) combinations = 1 for count in counter.values(): comb.. 2025. 2. 9. 이전 1 2 다음