Alphabet

The English alphabet consists of these 26 letters: abcdefghijklmnopqrstuvwxyz.
You are asked to print the first n letters (1 ≤ n ≤ 26) in a triangle where the i-th row will have the i-th letter repeated i times.
Input
Output
4
a bb ccc dddd
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue