728x90
- 문제 사이트: https://www.acmicpc.net/problem/24900
제시된 출력 결과를 공백까지 복사하여 동일하게 출력해주는 문제이다.
오른쪽 공백도 동일해야만 한다. 동일하지 않을 경우, "출력 형식이 잘못되었습니다" 결과가 나온다.
문자열을 한줄로 모두 연결하여 출력해줄 수도 있으나, 가독성을 위해 줄별로 끊어 출력해주도록 하였다.
#include <iostream>
using namespace std;
int main()
{
cout << " :8DDDDDDDDDDDDDD$. \n";
cout << " DDDNNN8~~~~~~~~~~=~7DNNDNDDDNNI \n";
cout << " ?NNDD=~=~~~~~~~~~~~~~~~~~=~~==~=INNDNN7 \n";
cout << " +NDDI~~~~~~~~~~~~~~~~~~~~~~~=~~========~ODND+ \n";
cout << " :NND~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~============7NDN \n";
cout << " $DD$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~==============~DNN \n";
cout << " $DD=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~=================NND \n";
cout << " ND7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~===================DD7 \n";
cout << " ~DD=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=======================8DN. \n";
cout << " 8DO~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=========================DD \n";
cout << " 8N~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~=======================DN \n";
cout << " NN::::::::~~~~~~~~~~~=~~~~~~~~~~~~~~~~~~~=~~========================DDO \n";
cout << " $D$:::::::::::::::~~~~DD~~~~~~~~~~~~~~~~~~=~~=========================DN. \n";
cout << " D8:::::::::::::::::::DN=::~~~~~~~~~~~~~~~~=~~======================~~:~DN \n";
cout << " DN:::::::::::::::::::ONO::::::::::::::::::::~~~~~~~~~~~~:::::::::::::::::DN \n";
cout << " DN::::::::::::::::::::NN.:::::::::::::::::::::::::::DN::::::::::::::::::::$DO \n";
cout << " DD:::::::::::::::::::DNI:::::::::::::::::::::::::::::D=::::::::::::::::::::NN \n";
cout << " NN~~~~:::::$N?:::::::.NN::::::::::::::::::::::::::::::ND.:::::::::::::::::::+N8 \n";
cout << " N7~~~~~~~~OD7::::::::~DD::::::::::::::::::::::::::::::~D$::::::::::::::::::::DN \n";
cout << " NN~~~~~~~~IDZ~~~~~::::DN~:::::::::::::::::::::::::::::::DN::::::::::::::::::::=N~ \n";
cout << " DD~~~~~~~~NN~~~~~~~~~=NN::::::::::::::::::::::::::::::::DN:::::::::::::::~~====NN \n";
cout << " 8D~~~~~~~~ND~~~~~~~~~~~ND~~~~~~~~:::::::::::::::::::::::::N7:::~~===============NN \n";
cout << " DD~~~~~~~ON+~~~~~~~~~~~ND~~~~~~~~~~~~~~~~~~~=+NZ==========NN====================~ND \n";
cout << " :DD7 DNDD. N8~~~~~~~NN~~~~~~~~~~DDND~~~~~~~~~~~~~~~~~~~~ND~~=========DD=====================ND \n";
cout << " N~:DDNNN .8NDN~~~~~~~$D=~~~~~~~~+ND.DD~~~~~~~~~~~~~~~~~~~=DD~~=========~D+====================DN \n";
cout << " :D . ..~ND~~~~~~~NN~~~~~~~+NN$..ND~~~~~~~~~~~~~~~~~~~7N=~~=========~ND=======~============ON \n";
cout << " NN ...:N?~~~~~~~N=~~~~~NNNI.. .7D+~~~~~~~~~~~~~~~~~=8NN~~==========NN=======N============$N \n";
cout << " N ODN ....DN~~~~~~~DD=8NNND$.. .DD~~~=~~~~~~~~~~~~~=NNDD=~=========8D~======NN===========~N$ \n";
cout << " N? =NN ND .....NND~~~~~~~DDNN:... .ND=~DNN~~~~~~~~~~~~=DN.DN~=========?N+======NN============ND \n";
cout << " $D? DN DZ ....ND8NN~~~~~~$D .DD~NNDD~~~~~~~~~~~~D8..DN=========~DN======NN============DN \n";
cout << " DN ~N~ NN ..:~NN..NZ~~~~~~DN NNN8.ND~~~~NDN?~~~DZ...7DD=======~NN======NN============DN \n";
cout << " ND DD :DN. ..ND$ .N?~~~~~=NNN . ..DDD$~N8OND8=N+ ..DDDZ~====NN======+D+===========ND \n";
cout << " NO DD ZDN 8NO~~~~~~NNN..DDDNN7 ...NND...:DDD: .:.NDND=~DD======~DO===========DN \n";
cout << " DNDDN:. DN~~~~~~=NNNN.ODNNNNDDNNO ... . ...DNNNN=======ND===========DD \n";
cout << " INDN7 DD. .DD~~~~~=IDND:.:~.....?DNDNN. ...... ....$D=======ND===========ND \n";
cout << " NN ND. 8N=~~~~$ND::.:=~:.~=......=ND~ .NNNNNNNNNNNNNNN.~N+======NN===========DN \n";
cout << " $DD DN: DD~~~~7NO...~==.:~~:..... NNNND? ..::..7NZ.:N?======8D~==========ZN \n";
cout << " DN? ~D: DND.?D~~~~~DD....~:.~=~....... ....~=:.:~..ND======~N$==========~DO \n";
cout << " ND ..DD. .DNDN=~~~~DI.......:......... ....=~..~~~..DN======~DD===========NN \n";
cout << " DDD :.:DD. . DDI~~~~~ND................ .DNNNNNNNNNN7 ....=~:.:~~...NN=======ND===========?D~ \n";
cout << " 8D. ...OD.. DD~~~~~~+ND ............ NN:~::::~~~8N ........~~...:ND=======DN============NN \n";
cout << " DDI:...ND .D7~~~~~~~7NN .......... ID8::::::::8D .............:DN=======ON============NN \n";
cout << " ~NNND.N=. .NN~~~~~~~~~NDN8 ~::::::~N8 .............DN========D=============NI \n";
cout << " DDNNN.ND~~~~~~~~DD =DND ............DN========N+~===========NN \n";
cout << " ~:N=~~~~~~~~DD .DDDD ........ NN========DD============8D \n";
cout << " 8N~~~~~~~~~ND . .7NDDD? . .8DDN========NN=============D: \n";
cout << " DD~~~~~~~~~DND: IDNNND$. .+DNNNNDNIDN========DD=============DD \n";
cout << " ND~~~~~~~~ZN 7DD .. .:DDNDDNNDNNNNDDNDND8$?===+$8DDNNNDDDDDN8I~DN====8N========NN=============NN \n";
cout << " DD~~~~~~~~8N DD. .NN~~~~.~~=DNDNO.:7ODDDDNNDD8DDDND=~~~ =~~~ON====8N========DN=============DN \n";
cout << " ND~~~~~~~~DN ZDD DN~~~ ~~~~~=.7DDD+.......8NNN==~~~~~ ~~~~~ONN$==DN========8N=============ON \n";
cout << " ND~8N~=~~~ZN DDODN=~.~~~~~=.~~~~INDNNNNDNN~~~~~~~~:~~~~~~~DN~ND=DN========DD=========~ND=8N \n";
cout << " IN=NDDI~~~~D8 DNN::~~~~~.~~~~~=.~~ND~~ND~~~~~~~~.~~~~~~~~NN NDNN====ND==ND~D?======DNN=ND \n";
cout << " DNNI8ND=~~DN: ZN=~~~~~ ~~~~~.~~~~DD~=DD~~~~~~~ ~~~~~~~=.ND. . ND===DNDD=NDDNN=====8NZDDDN \n";
cout << " NND IDNDNNN+ D+~~~:~~~~~~ ~~~~~DDNNN+~~~~~~~~~~~~~~:=?N7 .ND=~ND DNNN~ID====ND7 NNN \n";
cout << " ID ND~~ ~~~~~:.~~~7DDN7IDNN==~~ ~~~~~~~~ ~~DN .:N?DDDDD NND 8N~=DDD ZNN \n";
cout << " NN~:~~~~~ =7DDDD+8N :N8DDZ.~~~~~~~~.~~~DD. NDD+ . DN= OND+ \n";
cout << " DND~~~=8DNDDZ=~~ ND NN~INND~~~~~.~~~~ND . . ..IDD \n";
cout << " DDNNNDNNN+~~~~~~.7N. ND~~~NDDI~ ~~~~=NNN .DDI \n";
cout << " DN=~~~~.=~~~~~~ ~~DN +N+~~~~+DNDD~~~NNNND. ..ND \n";
cout << " DDI~~ ~~~~~~~ ~~~ND.. ..ND~~~~:~~~DNDNNNN+ ..7O8ND+ \n";
cout << " .DND=~~~~=::~~=NN. . . 8D~~.~~~~~~=DN$ODNDNDNNNDNNNNND8+~.. \n";
cout << " 8DNNI=.~~~~=NDDNNNNDDNDNN.~~~~~IDDNDND7:. \n";
cout << " ?DNNDD?~DD ~NN~~=NDD$ \n";
cout << " :DDD. NNNN= \n";
return 0;
}
- 메모리: 2028 KB
- 시간: 0 ms
- 코드 길이: 8902 B
728x90
'Algorithm > BackJoon' 카테고리의 다른 글
10816번: 숫자 카드 2 (0) | 2023.07.04 |
---|---|
10817번: 세 수 (0) | 2023.07.04 |
10815번: 숫자 카드 (0) | 2023.06.28 |
11721번: 열 개씩 끊어 출력하기 (0) | 2023.06.27 |
2525번: 오븐 시계 (0) | 2023.06.25 |
댓글