File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # [ Bronze V] 별 찍기 - 1 - 2438
2+
3+ [ 문제 링크] ( https://www.acmicpc.net/problem/2438 )
4+
5+ ### 성능 요약
6+
7+ 메모리: 14216 KB, 시간: 108 ms
8+
9+ ### 분류
10+
11+ 구현
12+
13+ ### 제출 일자
14+
15+ 2025년 11월 3일 17:53:30
16+
17+ ### 문제 설명
18+
19+ <p >첫째 줄에는 별 1개, 둘째 줄에는 별 2개, N번째 줄에는 별 N개를 찍는 문제</p >
20+
21+ ### 입력
22+
23+ <p >첫째 줄에 N(1 ≤ N ≤ 100)이 주어진다.</p >
24+
25+ ### 출력
26+
27+ <p >첫째 줄부터 N번째 줄까지 차례대로 별을 출력한다.</p >
28+
Original file line number Diff line number Diff line change 1+ import java .io .*;
2+
3+ public class Main {
4+ public static void main (String [] args ) throws IOException {
5+ BufferedReader br = new BufferedReader (new InputStreamReader (System .in ));
6+ StringBuilder sb = new StringBuilder ();
7+ int N = Integer .parseInt (br .readLine ());
8+
9+ for (int i =1 ; i <=N ; i ++){
10+ for (int j =1 ; j <=i ; j ++){
11+ sb .append ("*" );
12+ }
13+ sb .append ("\n " );
14+ }
15+
16+ System .out .println (sb );
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments