프로그래머스_위장
programmers.co.kr/learn/courses/30/lessons/42578 코딩테스트 연습 - 위장 programmers.co.kr 딕셔너리를 이용해야 하는 문제입니다. 처음엔 무식하게 모든 경우의 수를 구하고 그중에서 중복된 의상을 착용한 것을 찾아서 빼주었는데 시간 초과가 났습니다... ㅎㅎ 무식하게 시간 초과 import itertools def solution(clothes): answer = 0 dic_clothes = dict(clothes) result = [] for i in range(1, len(clothes) + 1): product = itertools.combinations(dic_clothes, i) for p in product: flag = True key_dic..