#4297. Enlarged Checker Board
Enlarged Checker Board
Enlarged Checker Board
题目描述
Tiles are aligned in horizontal rows and vertical columns. Each tile has a grid with horizontal rows and vertical columns. On the whole, the tiles form a grid with horizontal rows and vertical columns.
For , Tile denotes the tile at the -th row from the top and the -th column from the left.
Each square of is painted as follows.
Each tile is either a white tile or a black tile. Every square in a white tile is painted white; every square in a black tile is painted black. Tile is a white tile. Two tiles sharing a side have different colors. Here, Tile and Tile are said to be sharing a side if and only if (where denotes the absolute value of ).
Print the grid in the format specified in the Output section.
输入格式
Input is given from Standard Input in the following format:
输出格式
Print strings that satisfy the following condition, with newlines in between.
Each of is a string of length consisting of and #. For each ij(1 \leq i \leq A\times N,1 \leq j \leq B\times N)jS_i.ijX$ is painted white; the character is # if the square is painted black.
4 3 2
..##..##
..##..##
..##..##
##..##..
##..##..
##..##..
..##..##
..##..##
..##..##
##..##..
##..##..
##..##..
5 1 5
.....#####.....#####.....
#####.....#####.....#####
.....#####.....#####.....
#####.....#####.....#####
.....#####.....#####.....
4 4 1
.#.#
.#.#
.#.#
.#.#
#.#.
#.#.
#.#.
#.#.
.#.#
.#.#
.#.#
.#.#
#.#.
#.#.
#.#.
#.#.
1 4 4
....
....
....
....
提示
All values in input are integers.
标签: AtCoder|abc250B
来源
AtCoder|abc250B