Skip to content

Commit 4d2554a

Browse files
committed
[level 1] Title: 나누어 떨어지는 숫자 배열, Time: 1.76 ms, Memory: 14.8 MB -BaekjoonHub
1 parent 00cd642 commit 4d2554a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

프로그래머스/1/12910. 나누어 떨어지는 숫자 배열/README.md

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

55
### 성능 요약
66

7-
메모리: 14.9 MB, 시간: 1.71 ms
7+
메모리: 14.8 MB, 시간: 1.76 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2026년 07월 14일 12:05:55
19+
2026년 07월 15일 11:20:16
2020

2121
### 문제 설명
2222

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
def solution(arr, divisor):
22
ans = []
3-
for num in arr:
4-
if num % divisor == 0:
5-
ans.append(num)
3+
for i in arr:
4+
if i % divisor == 0:
5+
ans.append(i)
66
if len(ans) == 0:
77
return [-1]
88
return sorted(ans)

0 commit comments

Comments
 (0)