#CCBCHBA0000090. Đường chéo phụ trên lưới (Secondary Diagonal Grid)
Đường chéo phụ trên lưới (Secondary Diagonal Grid)
Secondary Diagonal Grid
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print an -by- grid. Row and column indices start at 1. Print # if and . otherwise, with no spaces between characters.
Input
One line contains integer .
Output
Print lines of characters.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
3
Output:
..#
.#.
#..
Explanation:
The marked cell in row i is at column n+1-i. For this sample, the input is 3; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
#
Explanation:
The marked cell in row i is at column n+1-i. For this sample, the input is 1; the displayed rows follow these rules exactly.