반응형
요약 : 예제 출력 1처럼 개 모양 출력, "를 출력할땐 앞에 \를 붙여줘야함 ex) cout << "\"" << endl -> "출력
소스코드
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <iostream>
using namespace std;
int main(void) {
cout << "|\\_/|" << endl;
cout << "|q p| /}" << endl;
cout << "( 0 )\"\"\"\\" << endl; //"를 출력하려면 \"를 쓰면 댐
cout << "|\"^\"` |" << endl;
cout << "||_/=\\\\__|" << endl;
return 0;
}
|
cs |
정답 확인
반응형
'category > 백준 알고리즘 c++' 카테고리의 다른 글
백준 알고리즘 10869번 사칙연산 c++ (0) | 2020.12.03 |
---|---|
백준 알고리즘 1008번 A/B c++ (0) | 2020.12.03 |
백준 알고리즘 10998번 AxB c++ (0) | 2020.12.03 |
백준 알고리즘 1001번 A-B c++ (0) | 2020.12.03 |
백준 알고리즘 1000번 A+B c++ (0) | 2020.12.03 |
백준 알고리즘 10171번 고양이 c++ (0) | 2020.12.03 |
백준 알고리즘 10718번 We love kriii c++ (0) | 2020.12.01 |
백준 알고리즘 2557번 Hello World c++ (0) | 2020.12.01 |
댓글