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

23105번 - Character Grid 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB68413165.957%

문제

This is an output-only problem.

Your task is to build a square grid with side length $N \ge 13$ and fill it with lowercase English letters such that the following property is held.

Let us denote the character at $i$-th row and $j$-th column as $c_{i,j}$.

Consider $N^2 \cdot (N-1) / 2$ strings of the form $A_{i,j,p} = c_{i,j} c_{i,j+1} \ldots c_{i,j+p}$ for every 1ドル \le i \le N$ and every 1ドル \le j, p \le N-1$ such that $j + p \le N$.

Consider also $N^2 \cdot (N-1) / 2$ strings of the form $B_{i,j,p} = c_{i,j} c_{i+1,j} \ldots c_{i+p,j}$ for every 1ドル \le j \le N$ and every 1ドル \le i, p \le N-1$ such that $i + p \le N$.

All those $N^2 \cdot (N-1)$ strings have to be pairwise distinct.

입력

There is no input.

출력

Print the answer in the following format: first print the $N$ (13ドル \le N \le 100$). Then print the square grid as $N$ lines; $i$-th line shall contain one string of $N$ characters, representing the $i$-th row of the grid.

If there are several correct solutions, any one of them will be accepted.

제한

예제 입력 1

예제 출력 1

4
petr
ozav
odsk
camp

힌트

For the answer from the sample, the grid property is held, but the grid size is too small to be accepted as a solution.

출처

Camp > Petrozavodsk Programming Camp > Summer 2021 > Day 1: Kyoto U Contest 1 C번

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

출처

대학교 대회

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

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