acmsguru |
---|
Закончено |
.' (dot), denoting an empty square, or '
X' (capital English letter X), denoting a square occupied by the logo. All the '
X's will form a connected figure, there will be exactly 9 '
X's in input. The first line, the last line, the first column and the last column will contain at least one '
X', in other words, there will not be unnecessary empty rows at any side of the grid.
X's replaced by the first K capital letters of English alphabet, each letter denoting one part. Then output an empty line, and then 3 lines containing 3 characters each, containing the same K parts but shifted around so that they form a 3x3 square.
sample input | sample output |
4 5 ....X ....X ..XXX XXXX. | 3 ....A ....C ..CCC BBCC. BBC CCC CCA |
Название |
---|