#CCBCHBA0000093. Dải chéo chính (Main Diagonal Grid)
Dải chéo chính (Main Diagonal Grid)
Main Diagonal Grid
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print an -by- grid. The cell is # when and . otherwise. Indices begin at 1 and characters have no separating spaces.
Input
One line contains integer .
Output
Print lines each of characters.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
3
Output:
#..
.#.
..#
Explanation:
Exactly the positions with equal row and column numbers are marked. For this sample, the input is 3; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
#
Explanation:
Exactly the positions with equal row and column numbers are marked. For this sample, the input is 1; the displayed rows follow these rules exactly.