Updated:

1. 문제 링크

https://www.acmicpc.net/problem/10172

2. 사용 알고리즘

구현

3. 풀이

단순 문자열 출력

4. 소스 코드

4-1. C++

https://github.com/dev-aiden/problem-solving/blob/main/boj/10172.cpp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

using namespace std;

int main(void) {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    cout << "|\\_/|" << "\n";
    cout << "|q p|   /}" << "\n";
    cout << "( 0 )\"\"\"\\" << "\n";
    cout << "|\"^\"`    |" << "\n";
    cout << "||_/=\\\\__|" << "\n";
    return 0;
}

4-2. JAVA

https://github.com/dev-aiden/problem-solving/blob/main/boj/10172.java

1
2
3
4
5
6
7
8
9
10
public class Main {

    public static void main(String[] args) {
        System.out.println("|\\_/|");
        System.out.println("|q p|   /}");
        System.out.println("( 0 )\"\"\"\\");
        System.out.println("|\"^\"`    |");
        System.out.println("||_/=\\\\__|");
    }
}

Updated:

Leave a comment