Story of CowHacker

백준 10171번 고양이 본문

공부/백준

백준 10171번 고양이

Cow_Hacker 2020. 8. 7. 11:06
728x90

백준 10171번 문제를 풀어 볼 것이다.

 

 

#include <stdio.h>
int main(void)
{
 printf("\\    /\\\n");
 printf(" )  ( ')\n");
 printf("(  /  )\n");
 printf(" \\(__)|\n");
}

 

C언어

 

 

먼저 C언어로 풀어봤다.

 

C언어에서 \출력은 \\이렇게 두 개씩 써야 한다.

 

 

 

 

 

print("\    /\\")
print(" )  ( ')")
print("(  /  )")
print(" \(__)|")

 

 

 

python

 다음은 python으로 풀어보았다.

 

 

 

 

 

728x90

'공부 > 백준' 카테고리의 다른 글

백준 2839번 설탕배달  (0) 2020.08.30
백준 1000번 A + B  (0) 2020.08.11
백준 10172번 개  (2) 2020.08.07
백준 10718번 We love kriii  (0) 2020.07.29
백준 2557번 Hello World  (1) 2020.07.29
Comments