Skip to content

Commit 0f5fd3a

Browse files
authored
๐Ÿœ Study: ํ”ผ๋กœ๋„ (#80)
1 parent d3848ae commit 0f5fd3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

โ€Žํ”ผ๋กœ๋„.pyโ€Ž

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)