def solution(n): answer = [] for i in range(n) : if n % i == 0 : answer.append(i) return sum(answer)
'Algorithm > Programmers' 카테고리의 다른 글
[Python] 체육복 (0) | 2021.04.27 |
---|---|
[Python] 자릿수 더하기 (0) | 2021.04.27 |
[Python] 시저 암호 (0) | 2021.04.26 |
[Python] 주식가격 (0) | 2021.04.22 |
[Python] 프린터 (0) | 2021.04.22 |