1
|
n=int(input())
cnt=0
num=[]
for i in range(n):
if (n%(i+1)==0):
num.append(i+1)
print(' '.join(map(str,num)))
|
cs |
'Algorithm > SWEA' 카테고리의 다른 글
[SWEA] 2025: N줄 덧셈 (python) (0) | 2022.07.04 |
---|---|
[SWEA] 2019: 더블더블 (python) (0) | 2022.07.04 |
[SWEA] 1938: 아주 간단한계산기 (python) (0) | 2022.07.04 |
[SWEA] 1936: 1대1 가위바위보 (python) (0) | 2022.07.04 |
[SWEA] 1545: 거꾸로 출력 (python) (0) | 2022.07.04 |