[Programmers] 피로도
Python from itertools import permutations def solution(k, dungeons): answer = 0 for dungeon in permutations(dungeons): num = k count ...
Python from itertools import permutations def solution(k, dungeons): answer = 0 for dungeon in permutations(dungeons): num = k count ...
Python import math def solution(n, k): answer = [] temps = list(range(1, n + 1)) k -= 1 for i in range(n, 0, -1): div, k = divmod(k, ...
Python def solution(s): temp = [] for i in range(len(s)): if len(temp) == 0: temp.append(s[i]) elif s[i] == temp[-1]: ...
Python ~~~python def solution(s, n): s = list(s) for i in range(len(s)): if s[i].isupper(): s[i] = chr((ord(s[i]) - ord(‘A’) + n)...
Python def solution(n): a, b = 0, 1 for i in range(n): a, b = b, a + b return a