package algo;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class BJ2439 {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter (new OutputStreamWriter(System.out));
int N = Integer.parseInt(br.readLine());
for(int i=1; i<=N; i++) {
for(int j=N-1; j>=i; j--) {
System.out.print(" ");
}
for(int j=1; j<=i; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
------------------------------------------------------------------------------------------------
굉장히 오래걸림 ^^;;;;;;;;;;;;;;;;;;;;;;
'백준알고리즘' 카테고리의 다른 글
백준 10952번 While A+B - 5 (0) | 2020.03.16 |
---|---|
백준 10871번 X보다 작은 수 (0) | 2020.03.02 |
백준 15552번 빠른 A+B (0) | 2020.03.02 |
백준 8393번 합 (0) | 2020.03.01 |
백준 10950번 A+B - 3 (0) | 2020.03.01 |
댓글