Skip to content

Commit 8326564

Browse files
committed
[level 1] Title: 약수의 합, Time: 0.05 ms, Memory: 73.7 MB -BaekjoonHub
1 parent 989d420 commit 8326564

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

프로그래머스/1/12928. 약수의 합/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 10.3 MB, 시간: 0.34 ms
7+
메모리: 73.7 MB, 시간: 0.05 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2024년 06월 19일 21:34:15
19+
2026년 06월 21일 13:57:35
2020

2121
### 문제 설명
2222

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class Solution {
2+
public int solution(int n) {
3+
int ans = 0;
4+
5+
for (int i = 1; i <= n; i++) {
6+
if (n % i == 0) {
7+
ans += i;
8+
}
9+
}
10+
return ans;
11+
}
12+
}

0 commit comments

Comments
 (0)