We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8aa813 commit f6b329aCopy full SHA for f6b329a
1 file changed
programmers/약수의 합.py
@@ -0,0 +1,11 @@
1
+def solution(n):
2
+ answer = 0
3
+ 리스트 = []
4
+
5
+ for i in range(1, n+1):
6
+ if n % i == 0:
7
+ 리스트.append(i)
8
9
+ for i in range(len(리스트)):
10
+ answer += 리스트[i]
11
+ return answer
0 commit comments