시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 128 MB 455 260 128 56.889%

문제

지민이는 새로운 컴퓨터를 샀다. 하지만 새로운 컴퓨터에 사은품으로 온 LC-디스플레이 모니터가 잘 안나오는 것이다. 지민이의 친한 친구인 지환이는 지민이의 새로운 모니터를 위해 테스트 할 수 있는 프로그램을 만들기로 하였다.

입력

첫째 줄에 두 개의 정수 s와 n이 들어온다. (1 ≤ s ≤ 10, 0 ≤ n ≤ 9,999,999,999)이다. n은 LCD 모니터에 나타내야 할 수 이며, s는 크기이다.

출력

길이가 s인 '-'와 '|'를 이용해서 출력해야 한다. 각 숫자는 모두 s+2의 가로와 2s+3의 세로로 이루어 진다. 나머지는 공백으로 채워야 한다. 각 숫자의 사이에는 공백이 한 칸 있어야 한다.

예제 입력 1

2 1234567890

예제 출력 1

      --   --        --   --   --   --   --   --  
   |    |    | |  | |    |       | |  | |  | |  | 
   |    |    | |  | |    |       | |  | |  | |  | 
      --   --   --   --   --        --   --       
   | |       |    |    | |  |    | |  |    | |  | 
   | |       |    |    | |  |    | |  |    | |  | 
      --   --        --   --        --   --   --  
W3sicHJvYmxlbV9pZCI6IjIyOTAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJMQ0QgVGVzdCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjOWMwXHViYmZjXHVjNzc0XHViMjk0IFx1YzBjOFx1Yjg1Y1x1YzZiNCBcdWNlZjRcdWQ0ZThcdWQxMzBcdWI5N2MgXHVjMGMwXHViMmU0LiBcdWQ1NThcdWM5YzBcdWI5Y2MgXHVjMGM4XHViODVjXHVjNmI0IFx1Y2VmNFx1ZDRlOFx1ZDEzMFx1YzVkMCBcdWMwYWNcdWM3NDBcdWQ0ODhcdWM3M2NcdWI4NWMgXHVjNjI4IExDLVx1YjUxNFx1YzJhNFx1ZDUwY1x1YjgwOFx1Yzc3NCBcdWJhYThcdWIyYzhcdWQxMzBcdWFjMDAgXHVjNzk4IFx1YzU0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rcywgYWxzbyBmb3IgdGhlIGxhc3QgZGlnaXQuKSBUaGVyZSBoYXMgdG8gYmUgZXhhY3RseSBvbmUgY29sdW1uIG9mIGJsYW5rcyBiZXR3ZWVuIHR3byBkaWdpdHMuJm5ic3A7PFwvcD5cclxuXHJcbjxwPk91dHB1dCBhIGJsYW5rIGxpbmUgYWZ0ZXIgZWFjaCBudW1iZXIuIChZb3Ugd2lsbCBmaW5kIGEgc2FtcGxlIG9mIGVhY2ggZGlnaXQgaW4gdGhlIHNhbXBsZSBvdXRwdXQuKTxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

ACM-ICPC > Regionals > Europe > Mid-Central European Regional Contest > MCERC 1999 E번

  • 문제를 번역한 사람: baekjoon
  • 잘못된 데이터를 찾은 사람: goooora
  • 문제의 오타를 찾은 사람: joonas