Skip to content

Commit 3e029c0

Browse files
committed
[D1] Title: 더블더블, Time: 95 ms, Memory: 26,240 KB -BaekjoonHub
1 parent c2c4a4d commit 3e029c0

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [D1] 더블더블 - 2019
2+
3+
[문제 링크](https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QDEX6AqwDFAUq)
4+
5+
### 성능 요약
6+
7+
메모리: 26,240 KB, 시간: 95 ms, 코드길이: 431 Bytes
8+
9+
### 제출 일자
10+
11+
2025-09-25 16:18
12+
13+
14+
15+
> 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import java.util.Scanner;
2+
import java.io.FileInputStream;
3+
4+
class Solution
5+
{
6+
public static void main(String args[]) throws Exception
7+
{
8+
Scanner sc = new Scanner(System.in);
9+
int n = sc.nextInt();
10+
11+
int prev = 1;
12+
StringBuilder sb = new StringBuilder();
13+
for(int i=0; i<=n; i++){
14+
sb.append(prev + " ");
15+
prev= prev*2;
16+
17+
}
18+
System.out.print(sb);
19+
}
20+
}

0 commit comments

Comments
 (0)