Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
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
Archives
Today
Total
관리 메뉴

행복한 개구리

(C++ / Python) 백준 10172번 - 개 본문

Algorithm/BaekJoon

(C++ / Python) 백준 10172번 - 개

HappyFrog 2022. 7. 8. 13:18


 

 

 

 

 

 

Python


l = ["|\\_/|", "|q p|   /}", "( 0 )\"\"\"\\", "|\"^\"`    |", "||_/=\\\\__|"]
for i in range(5):
    print(l[i])

 

 

 

C++


#include <iostream>

using namespace std;

int main() {
	string txt[5] = {"|\\_/|", "|q p|   /}", "( 0 )\"\"\"\\", "|\"^\"`    |", "||_/=\\\\__|"};

	for (int i = 0; i < 5; i++) {
		cout << txt[i] << "\n";
	}
}