Asterisks
Time limit1sMemory limit1024 MB
Print n lines where line k has k squared asterisks, capped at 100 with three dots appended when the count exceeds 100.
- Level
Easy1 of 10
- Topics
- Implementation, Simulation
- Solved
- No attempts yet
Problem
Kolya likes drawing pictures out of asterisks. Today he decided to print lines, where the -th line must contain asterisks.
But then Kolya realized that printing too many asterisks is bad. So he decided that if a line must contain more than asterisks, he will print only asterisks in that line and then print three dots.
Help Kolya implement his plan.
Input
The input is a single integer ().
Output
Print lines according to Kolya's plan. Do not print spaces.