[BOJ 10172] 개
Baekjoon Online Judge 10172(Java 11)
[개] 문제 풀이
[BOJ 10172] 개
시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 256 MB | 526277 | 223069 | 195791 | 43.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 ms | 13928 KB |
Reference
This post is licensed under CC BY 4.0 by the author.