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

 

10172번: 개

문제 아래 예제와 같이 개를 출력하시오. 입력 출력 예제 입력 1 복사 예제 출력 1 복사 |\_/| |q p| /} ( 0 )"""\ |"^"` | ||_/=\\__|...

www.acmicpc.net

 

문제 요약 : 출력 그대로 출력

 

입력 출력
없음

|\_/|
|q p|   /}
( 0 )"""\
|"^"`    |
||_/=\\__|

 

 

 

 

JAVA

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
16318311 cbkpar 10172 맞았습니다!! 12636KB 64ms Java 335B
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("||_/=\\\\__|");
	}
}

 

 

 

 

Python

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
16318352 cbkpar 10172 맞았습니다!! 29284KB 56ms Python 3 187B
print("|\\_/| ") # \를 출력하기 위해 \\로 입력
print("|q p|   /} ")
print("( 0 )\"\"\"\\ ") # "를 출력하기 위해 \"로 입력
print("|\"^\"`    | ")
print("||_/=\\\\__|")



 

C

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
16318502 cbkpar 10172 맞았습니다!! 1112KB 0ms C 257B
#include <stdio.h>

int main()
{
    puts("|\\_/| "); // \를 출력하기 위해 \\로 입력
    puts("|q p|   /} ");
    puts("( 0 )\"\"\"\\ "); // "를 출력하기 위해 \"로 입력
    puts("|\"^\"`    | ");
    puts("||_/=\\\\__|");
    return 0;
}

 

 

C++

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
6318555 cbkpar 10172 맞았습니다!! 1984KB 0ms C++17 231B
#include <iostream>
using namespace std;

int main() {
    cout << "|\\_/| "<<endl; // \를 출력하기 위해 \\로 입력
    cout << "|q p|   /} "<<endl;
    cout << "( 0 )\"\"\"\\ "<<endl; // "를 출력하기 위해 \"로 입력
    cout << "|\"^\"`    | "<<endl;
    cout << "||_/=\\\\__|";
    return 0;
}

'백준온라인' 카테고리의 다른 글

[백준온라인] 10998번 A×B  (0) 2019.12.01
[백준온라인] 1001번 A-B  (0) 2019.12.01
[백준온라인] 10171번 고양이  (0) 2019.12.01
[백준온라인] 10718번 We love krill  (0) 2019.11.30
[백준온라인] 2557번 Hello World  (0) 2019.11.30

+ Recent posts