본문 바로가기
category/백준 알고리즘 c++

백준 알고리즘 10171번 고양이 c++

by 자운대고라니 2020. 12. 3.
반응형

요약 : 예제 출력 1 그대로 출력하되, \(백슬래시)는 cout << "\" << endl; 이 출력되지 않는다.

cout << "\\" << endl; -> \출력


소스코드

1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
 
using namespace std;
 
int main(void) {
    cout << "\\    /\\" << endl;
    cout << " )  ( ')" << endl;
    cout << "(  /  )" << endl;
    cout << " \\(__)|" << endl;
    return 0;
}
cs

정답 확인

반응형

댓글