728x90
문제 : You have just learned how to output text to the screen and your teacher has challenged you to create an ASCII art of a chess piece. You have decided to make your favorite piece, the rook.
출력 : The rook art, exactly as shown below, with no extra blank spaces. In particular, a line must not end with a blank space.
예제 :
___ ___ ___
| |__| |__| |
| |
\_________/
\_______/
| |
| |
| |
| |
|_____|
__/ \__
/ \
/_______________\
public class no_2393 {
public static void main(String[] args) {
System.out.println(" ___ ___ ___");
System.out.println(" | |__| |__| |");
System.out.println(" | |");
System.out.println(" \\_________/");
System.out.println(" \\_______/");
System.out.println(" | |");
System.out.println(" | |");
System.out.println(" | |");
System.out.println(" | |");
System.out.println(" |_____|");
System.out.println(" __/ \\__");
System.out.println(" / \\");
System.out.println("/_______________\\");
}
}
'JAVA > Coding Test Study' 카테고리의 다른 글
[Lv.1] 같은 숫자는 싫어 : Java (0) | 2024.01.19 |
---|---|
[Gold V] 백준 - 25556. 포스택 : Java (1) | 2024.01.19 |
[Bronze V] 백준 - 2377. Pottery : FreeBASIC (0) | 2023.12.19 |
[Bronze V] 백준 - 2372. Livestock Count : Ada (0) | 2023.12.19 |
[Bronze V] 백준 - 2338. 긴자리 계산 : Java (0) | 2023.12.19 |