Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- dfs
- dynamic
- Unreal Engine 5
- 파이썬
- C#
- Basic
- Tutorial
- Material
- 문제풀이
- DP
- 기초
- UE5
- guide
- parameter
- String
- Class
- 프로그래밍
- Algorithm
- Programming
- w3school
- W3Schools
- 재귀
- 오류
- github
- Unity
- python
- 백준
- 시작해요 언리얼 2022
- c++
- loop
Archives
- Today
- Total
행복한 개구리
(C++/Python) 백준 10171번 - 고양이 본문
Python
l = ["\ /\\", " ) ( ')", "( / )", " \(__)|"]
arr = [1,2,3,4]
for i in range(4):
print(l[i])
백슬래시( \ )는 "\\"라고 표기하면 string타입으로 출력할 수 있습니다.
C++
#include <iostream>
using namespace std;
int main() {
cout << "\\ /\\" << "\n";
cout << " ) ( ')" << "\n";
cout << "( / )" << "\n";
cout << " \\(__)|";
}
마찬가지로 특수문자를 출력할 땐 앞에 백슬래시를 붙여주면 됩니다.
'Algorithm > BaekJoon' 카테고리의 다른 글
(C++/Python) 백준 1000번 - A+B (0) | 2022.07.08 |
---|---|
(C++ / Python) 백준 10172번 - 개 (0) | 2022.07.08 |
(C++/Python) 백준 10718번 - We love kriii (0) | 2022.07.08 |
(C++ / Python) 백준 2557번 - Hello World! (0) | 2022.06.29 |
백준 22.04.07. 18258번 - 큐 2 (0) | 2022.04.07 |