[C++][백준 5337] 웰컴

PublicMinsu·2025년 8월 26일

문제

https://www.acmicpc.net/problem/5337

접근 방법

출력에 적혀있는 값을 출력해 주면 됩니다.
출력할 때 줄바꿈을 주의해 주어야 합니다.

코드

#include <iostream>
using namespace std;

int main()
{
    ios::sync_with_stdio(0), cin.tie(0);
    cout << ".  .   .\n"
         << "|  | _ | _. _ ._ _  _\n"
         << "|/\\|(/.|(_.(_)[ | )(/.";
    return 0;
}

풀이

각 줄마다 줄바꿈을 해주고 \의 경우에는 \을 활용하여 출력해 주면 됩니다.

profile
연락 : publicminsu@naver.com

0개의 댓글