자료구조 & 알고리즘/BOJ

[C++]백준 1단계 - 10171번, 10172번, 25083번 문제

ReBugs 2022. 11. 17.

#include <iostream>
using namespace std;
int main() {
    cout << "\\    /\\" << endl;
    cout << " )  ( ')" << endl;
    cout << "(  /  )" << endl;
    cout << " \\(__)|" << endl;
}

 

밑은 10172번 문제

#include <iostream>
using namespace std;
int main()
{
    cout << "|\\_/|" << endl;
    cout << "|q p|   /}" << endl;
    cout << "( 0 )\"\"\"\\" << endl;
    cout << "|\"^\"`    |" << endl;
    cout << "||_/=\\\\__|" << endl;
}

 

밑은 25083번 문제


( ', ", \ ) 이 세 가지 앞에 \를 붙여야 한다.

#include <iostream>
using namespace std;
int main() {
	cout << "         ,r\'\"7" << endl;
	cout << "r`-_   ,\'  ,/" << endl;
	cout << " \\. \". L_r\'" << endl;
	cout << "   `~\\/" << endl;
	cout << "      |" << endl;
	cout << "      |" << endl;
}

 

이 문제들은 대체 왜..? 있는걸까?

댓글