Preparando MOJI

Chessboard

2000ms 262144K

Description:

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.

Input:

The only line of input contains an integer n (1 ≤ n ≤ 9).

Output:

Output an image of n × n chessboard.

Sample Input:

4

Sample Output:

.#.#
#.#.
.#.#
#.#.

Informação

Codeforces

Provedor Codeforces

Código CF470E

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:53:43

Relacionados

Nada ainda