#t48. 画三角形
画三角形
Draw a Triangle
Problem Description
Given a positive integer , use uppercase letters to draw a triangle pattern as shown in the sample input/output. The first row of the triangle has letter, the second row has letters, and so on. In the triangle pattern, from top to bottom and from left to right, fill successively with the uppercase letters A–Z; after using Z, restart filling from A.
Input Format
One line containing a positive integer . It is guaranteed that .
Output Format
Output the triangle pattern as required. Note that there must be no trailing spaces at the right side of each row.
Sample Input
3
Sample Output
A
BC
DEF
Sample Explanation
When , the triangle has rows. The first row has letter, which is A; the second row has letters, in order B and C; the third row has letters, in order D, E and F. Hence the output is as shown above.
Constraints