ABC167 C - Skill Up
https://atcoder.jp/contests/abc167/tasks/abc167_c
提出
code: python
import itertools
n, m, x = map(int, input().split())
a = list(map(int, input().split())) for _ in range(n)
ans = float('inf')
for i in range(1, n+1):
for j in itertools.combinations(a, i):
understand = 0 * (m+1)
for k in j:
for l in range(m+1):
understandl += kl
if (min(understand1:) >= x):
res = understand0
if (res < ans):
ans = res
if (ans == float('inf')):
print(-1)
else:
print(ans)
テーマ
#itertools