JAVA/Coding Test Study
[Bronze V] 백준 - 2393. Rook : Java
♡˖GYURI˖♡
2023. 12. 19. 09:31
728x90
2393번: Rook
The rook art, exactly as shown below, with no extra blank spaces. In particular, a line must not end with a blank space.
www.acmicpc.net
문제 : 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("/_______________\\");
}
}