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

 

10171번: 고양이

문제 아래 예제와 같이 고양이를 출력하시오. 입력 출력 고양이를 출력한다. 예제 입력 1 복사 예제 출력 1 복사 \ /\ ) ( ') ( / ) \(__)|...

www.acmicpc.net

 

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

 

입력 출력
없음

 

\    /\

 )   (  ')

(   /   )

 \(__)|

 

 

 

 

JAVA

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
16317330 cbkpar 10171 맞았습니다!! 12616KB 64ms Java 226B
public class Main {
	public static void main(String[] args) {
        System.out.println("\\    /\\"); // \를 출력하기위해서는 \\로 입력해야 함
        System.out.println(" )  ( ')"); // println 자동으로 글이 내려감
        System.out.println("(  /  )");
        System.out.println(" \\(__)|");
	}
}

 

 

 

 

Python

채점 번호 아이디 문제 번호 결과 메모리 시간 언어 코드 길이
16317355 cbkpar 10171 맞았습니다!! 29284KB 56ms Python 3 71B
print("\\    /\\") // \를 입력하기 위해 \\로 입력해야 함
print(" )  ( ')") //print시 자동으로 개행
print("(  /  )")
print(" \\(__)|")



 

C

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

int main()
{
    puts("\\    /\\"); // \를 출력하기 위해서는 \\로 입력해야 함
    puts(" )  ( ')"); // puts시 자동으로 개행
    puts("(  /  )");
    puts(" \\(__)|");
    return 0;
}

 

 

C++

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

int main() {
    cout << "\\    /\\"<<endl; // \를 입력하기위해 \\로 입력해야 함
    cout << " )  ( ')"<<endl; // endl를 이용하여 개행
    cout << "(  /  )"<<endl;
    cout << " \\(__)|";
    return 0;
}



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

[백준온라인] 1001번 A-B  (0) 2019.12.01
[백준온라인] 10172번 개  (0) 2019.12.01
[백준온라인] 10718번 We love krill  (0) 2019.11.30
[백준온라인] 2557번 Hello World  (0) 2019.11.30
[백준온라인] 1000번 A+B  (0) 2019.11.30

+ Recent posts