import java.util.ArrayList;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int result = 1;
for (int i = 0; i <= a; i++) {
if(i == 0){
System.out.print(result + " ");
continue;
}
result *= 2;
System.out.print(result + " ");
}
}
}
'알고리즘 > 문제 풀이' 카테고리의 다른 글
SW D2 1859. 백만장자 프로젝트 (0) | 2023.05.07 |
---|---|
SW Expert Academy 1545. 거꾸로 출력해 보아요. (0) | 2023.05.05 |
SW Academy 1936. 1대1 가위바위보 (0) | 2023.05.05 |
SW Expert Academy 1933. 간단한 N 의 약수 (0) | 2023.05.05 |
1938 아주 간단한 계산기 (0) | 2023.05.05 |