1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12928
2. 풀이
def solution(n):
aksoo = []
for i in range(1, n+1):
if n % i == 0:
aksoo.append(i)
return sum(aksoo)
https://programmers.co.kr/learn/courses/30/lessons/12928
def solution(n):
aksoo = []
for i in range(1, n+1):
if n % i == 0:
aksoo.append(i)
return sum(aksoo)