#CCBCHBA0000091. Tam giác rỗng (Hollow Triangle)
Tam giác rỗng (Hollow Triangle)
Hollow Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print rows of a left-aligned triangle; row contains exactly characters. Print * in the first and last columns of the row or anywhere on the bottom row (). Print . elsewhere. No spaces.
Input
One line contains integer .
Output
Print rows with row having length .
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
4
Output:
*
**
*.*
****
Explanation:
The first and last positions of a row, and every position on the bottom row, are stars. For this sample, the input is 4; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
*
Explanation:
The first and last positions of a row, and every position on the bottom row, are stars. For this sample, the input is 1; the displayed rows follow these rules exactly.