Skip to content

Commit 49f09d1

Browse files
committed
[Bronze V] Title: N 찍기, Time: 144 ms, Memory: 17396 KB -BaekjoonHub
1 parent 3e6d6cc commit 49f09d1

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import java.io.*;
2+
class Main{
3+
public static void main (String[] args) throws Exception {
4+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
5+
int n = Integer.parseInt(br.readLine());
6+
StringBuilder sb = new StringBuilder();
7+
for(int i=1; i<n+1; i++){
8+
sb.append(i);
9+
sb.append("\n");
10+
}
11+
System.out.println(sb);
12+
}
13+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# [Bronze V] N 찍기 - 2741
2+
3+
[문제 링크](https://www.acmicpc.net/problem/2741)
4+
5+
### 성능 요약
6+
7+
메모리: 17396 KB, 시간: 144 ms
8+
9+
### 분류
10+
11+
구현
12+
13+
### 제출 일자
14+
15+
2025년 8월 1일 01:37:28
16+
17+
### 문제 설명
18+
19+
<p>자연수 N이 주어졌을 때, 1부터 N까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.</p>
20+
21+
### 입력
22+
23+
<p>첫째 줄에 100,000보다 작거나 같은 자연수 N이 주어진다.</p>
24+
25+
### 출력
26+
27+
<p>첫째 줄부터 N번째 줄 까지 차례대로 출력한다.</p>
28+

0 commit comments

Comments
 (0)