We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7081f9 commit ca0f00fCopy full SHA for ca0f00f
programmers/Lv.1/count_divisor.py
@@ -1,10 +1,13 @@
1
+# Lv.1
2
+# 약수의 개수와 덧셈
3
def solution(left, right):
4
int_list = [0] * (right - left + 1)
5
+ # 약수의 개수 구하기
6
for i in range(1, right + 1):
7
for j in range(left, right + 1):
8
if j >= i and j % i == 0:
9
int_list[j - left] += 1
- # print(int_list[left : right + 1])
10
+ # 결괏값 구하기
11
answer = 0
12
for i in range(left, right + 1):
13
if int_list[i - left] % 2 == 0:
0 commit comments