| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 138 | 120 | 100 | 87.719% |
Busy Beaver is throwing an MITIT party!
Busy Beaver is planning to print a large banner. His printer is old-school: it draws on an $N \times N$ pixel board, where $N$ is odd, using # for ink and . for blank space. For the first letter of the banner, he needs the letter M, printed as shown below.
Your job is to tell the printer exactly which pixels to ink.
Formally, the M is defined as follows. The left and right edges of the banner are the M's vertical legs, running all the way from top to bottom. From the top corners, two strokes with slope 1ドル$ and $-1$ descend inward, one from each side, meeting exactly in the middle row. Because $n$ is odd, there is a single center column and a single middle row where the slanted strokes touch. Below that meeting point, only the two outer legs continue to the bottom.
The first line contains a single integer $T$ (1ドル \leq T \leq 50$) --- the number of test cases.
The only line of each test case contains a single odd integer $N$ (5ドル \leq N < 50,ドル $N$ is odd) --- the side length of Busy Beaver's board.
For each test case, output $N$ lines, each containing $N$ characters # and . without spaces --- the letter M, as described in the statement.
Do not output empty lines between test cases.
3 5 7 9
#...# ##.## #.#.# #...# #...# #.....# ##...## #.#.#.# #..#..# #.....# #.....# #.....# #.......# ##.....## #.#...#.# #..#.#..# #...#...# #.......# #.......# #.......# #.......#
University > MIT > M(IT)^2 > M(IT)^2 Winter 2025-26 Tournament > Beginner Round 1번