atcoder#ABC230C. [ABC230C] X drawing
[ABC230C] X drawing
Score : points
Problem Statement
There is an grid with horizontal rows and vertical columns, where all squares are initially painted white. Let denote the square at the -th row and -th column.
Takahashi has integers and , which are between and (inclusive). He will do the following operations.
- For every integer such that , paint black.
- For every integer such that , paint black.
In the grid after these operations, find the color of each square such that and .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print lines.
Each line should contain a string of length consisting of #
and .
.
The -th character of the string in the -th line should be #
to represent that is painted black, and .
to represent that is white.
5 3 2
1 5 1 5
...#.
#.#..
.#...
#.#..
...#.
The first operation paints the four squares , , , black, and the second paints the four squares , , , black. Thus, the above output should be printed, since , , , .
5 3 3
4 5 2 5
#.#.
...#
The operations paint the nine squares , , , , , , , , . Thus, the above output should be printed, since , , , .
1000000000000000000 999999999999999999 999999999999999999
999999999999999998 1000000000000000000 999999999999999998 1000000000000000000
#.#
.#.
#.#
Note that the input may not fit into a -bit integer type.