1
|
n=int(input())
result=1
num=[]
for i in range(n+1):
if (i==0):
num.append(1)
else:
result=result*2
num.append(result)
print(' '.join(map(str,num)))
|
cs |
'Algorithm > SWEA' 카테고리의 다른 글
[SWEA] 1959: 두개의 숫자열 (JAVA) (0) | 2022.07.05 |
---|---|
[SWEA] 2025: N줄 덧셈 (python) (0) | 2022.07.04 |
[SWEA] 1938: 아주 간단한계산기 (python) (0) | 2022.07.04 |
[SWEA] 1936: 1대1 가위바위보 (python) (0) | 2022.07.04 |
[SWEA] 1933: 간단한수 N의 약수 (python) (0) | 2022.07.04 |