302442: CF470E. Chessboard
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
E. Chessboardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
Chessboard is a board of n × n squares arranged in two alternating colors (black and white). Top left square is white. You are given board size n. Output an image of a chessboard, with black and white squares marked with '#' and '.' characters, respectively.
InputThe only line of input contains an integer n (1 ≤ n ≤ 9).
OutputOutput an image of n × n chessboard.
ExamplesInput4Output
.#.#
#.#.
.#.#
#.#.