| Kotlin Heroes: Episode 14 |
|---|
| Finished |
You need to construct a field for the game "Minesweeper" consisting of $$$2$$$ rows and several columns. Each cell must either be empty or contain a mine. We say that two cells are neighboring if they share a side and/or a corner.
The field you are constructing must satisfy the following constraints:
Construct such a field or report that it is impossible.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 100$$$) — the number of test cases.
Each test case consists of one line containing one integer $$$k$$$ ($$$1 \le k \le 100$$$) — the required number of empty cells which have a neighboring cell with a mine.
For each test case, output the answer as follows:
5148109
YES 1 * . NO YES 5 *.... ...*. YES 6 .*..*. ...... NO
| Name |
|---|


