728x90 반응형 SMALL programming389 프로그래머스) 나누어 떨어지는 숫자 배열 def solution(arr, divisor): answer = [] arr.sort() [answer.append(arr[i]) for i in range(len(arr)) if arr[i] % divisor == 0] return answer if answer else [-1] 2024. 5. 18. 프로그래머스) qr code def solution(q, r, code): answer = '' answer += code[r:len(code):q] return answer 2024. 5. 17. 프로그래머스) A로 B만들기 def solution(before, after): answer = 0 before_reverse = before[::-1] print(before_reverse) return answer 2024. 5. 16. 백준) 31281번 - python a = list(map(int, input().split())) a.sort() print(a[1]) 2024. 5. 9. 이전 1 ··· 68 69 70 71 72 73 74 ··· 98 다음 728x90 반응형 LIST