We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00cd642 commit 4d2554aCopy full SHA for 4d2554a
2 files changed
프로그래머스/1/12910. 나누어 떨어지는 숫자 배열/README.md
@@ -4,7 +4,7 @@
4
5
### 성능 요약
6
7
-메모리: 14.9 MB, 시간: 1.71 ms
+메모리: 14.8 MB, 시간: 1.76 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2026년 07월 14일 12:05:55
+2026년 07월 15일 11:20:16
20
21
### 문제 설명
22
프로그래머스/1/12910. 나누어 떨어지는 숫자 배열/나누어 떨어지는 숫자 배열.py
@@ -1,8 +1,8 @@
1
def solution(arr, divisor):
2
ans = []
3
- for num in arr:
- if num % divisor == 0:
- ans.append(num)
+ for i in arr:
+ if i % divisor == 0:
+ ans.append(i)
if len(ans) == 0:
return [-1]
return sorted(ans)
0 commit comments