1
2
3
4
5
6
7
|
def divisiors(num):
ans=[]
for i in range(1,num+1):
if num%i==0: ans.append(i)
print(num,len(ans))
for _ in range(int(input())):
divisiors(int(input()))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 2858 기숙사 바닥 (0) | 2021.11.19 |
---|---|
백준 14782 Bedtime Reading, I (0) | 2021.11.19 |
백준 9288 More Dice (0) | 2021.11.19 |
백준 6975 Deficient, Perfect, and Abundant (0) | 2021.11.12 |
2167 2차원 배열의 합 (0) | 2021.11.12 |
댓글