일곱난쟁이
- aliases
- No value
- description
- No value
- tags
- algorithm
- difficulty
- No value
- status
- No value
- links
- https://www.acmicpc.net/problem/2309
- title
- 일곱난쟁이
- created
- 2024-12-23T18:24:10
- updated
- 2024-12-23T18:24:47
itertools.permutations 활용 구현
from itertools import permutations
MAXN = 9
ls = [int(input()) for _ in range(MAXN)]
for perm in permutations(ls, 7):
if sum(perm) == 100:
{print(x) for x in sorted(perm)}
break