반응형

풀이 : 역슬래쉬(\) , 큰따옴표(") , 작은따옴표(')를 출력하고 싶으면 앞에 역슬래쉬(\)를 붙이면 출력할 수 있다
코드
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout << "\\ /\\\n";
cout << " ) ( \')\n";
cout << "( / )\n";
cout << " \\(__)|\n";
return 0;
}반응형
'algorithm > 기초 코드' 카테고리의 다른 글
| [algorithm] 백준 9498번 시험 성적 (0) | 2025.10.12 |
|---|---|
| [algorithm] 백준 10869번 사칙연산 (0) | 2025.10.10 |
| [algorithm] 백준 2557번 Hello World (0) | 2025.10.10 |
| [algorithm] 백준 1000번 A+B (0) | 2025.10.10 |
| [algorithm] 백준 10871번 x보다 작은수 (0) | 2025.10.10 |
