<Hackerrank 문제풀이: 파이썬> List Comprehensions
간단하지만 매우 긴 문제였다: if __name__ == '__main__': x = int(input()) y = int(input()) z = int(input()) n = int(input()) list_of_permutations_before_delete = [] list_of_permutations = [] for i in range(x+1): for j in range(y+1): for k in range(z+1): permutations = [0, 0, 0] permutations[0] = i permutations[1] = j permutations[2] = k list_of_permutations_before_delete.append(permutations) for l in list_of..