Skip to content

Commit 04290a5

Browse files
ing-eokingbugs-bot
authored andcommitted
๐Ÿœ Study: ํ”ผ๋กœ๋„ (#80)
1 parent d3848ae commit 04290a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from itertools import permutations
2+
3+
def solution(k, dungeons):
4+
return max((lambda t: sum((t := t - j) >= 0 and t + j >= i for i, j in p))(k) for p in permutations(dungeons))

0 commit comments

Comments
ย (0)