Logo
(追記) (追記ここまで)

27137번 - Square Designs 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB113504442.308%

문제

Write a program that will generate Square Designs like the ones below for any values of M and N (1 ≤ M ≤ 18; 1 ≤ N ≤ 18). Exactly ten spaces separate the pair of boxes and the left box has no spaces in front of it. There are neither "tabs" nor trailing spaces in the output.

Here is the output for M=5 and N=3:

+-----------+ +-------+
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I I-X-X-X-I
I-X-X-X-X-X-I +-------+
I-X-X-X-X-X-I
+-----------+

This output contains no blank lines.

입력

A single line containing two integers, M and N.

출력

Several output lines that create the design as shown above.

제한

예제 입력 1

2 6

예제 출력 1

+-----+ +-------------+
I-X-X-I I-X-X-X-X-X-X-I
I-X-X-I I-X-X-X-X-X-X-I
+-----+ I-X-X-X-X-X-X-I
 I-X-X-X-X-X-X-I
 I-X-X-X-X-X-X-I
 I-X-X-X-X-X-X-I
 +-------------+

힌트

출처

Olympiad > USA Computing Olympiad > 2000-2001 Season > USACO Spring 2001 Contest > Orange 2번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /