Post

[BOJ 10172] 개

Baekjoon Online Judge 10172(Java 11)
[개] 문제 풀이

[BOJ 10172] 개

-> 문제 바로가기



시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초256 MB52627722306919579143.071%

문제


  • 아래 예제와 같이 개를 출력하시오.


입력


  • 없음.


출력


  • 개를 출력한다.


예제


1
2
// 입력

1
2
3
4
5
6
// 출력
|\_/|
|q p|   /}
( 0 )"""\
|"^"`    |
||_/=\\__|


출처



알고리즘 분류








제출



내 제출


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.io.*;

public class Main {
    public static void solution() throws IOException {
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

        bw.write("|\\_/|");
        bw.newLine(); // 줄 바꿈

        bw.write("|q p|   /}");
        bw.newLine(); // 줄 바꿈

        bw.write("( 0 )\"\"\"\\");
        bw.newLine(); // 줄 바꿈

        bw.write("|\"^\"`    |");
        bw.newLine(); // 줄 바꿈

        bw.write("||_/=\\\\__|");
        bw.newLine(); // 줄 바꿈

        bw.flush();
        bw.close();
    }

    public static void main(String[] args) throws IOException {
        solution();
    }
}


런타임메모리
116 ms13928 KB


Reference


This post is licensed under CC BY 4.0 by the author.