| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 10768 | wave |
|
Description
A character wave consistss of lines of characters, which has a parameter, length L. The number of characters in the first line is 1, and is increased by one in the every following lines. After the number of character reaches L, it starts to descrease until the number of characters become 1 again. For example, the following is a character wave of length 3.
#
##
###
##
#
Print out N character waves consequtively. Each wave is built by the character C and the length is L.
Input
There are three inputs, separated by a space. The first one is a character C; the second one and the third one are integers, specifying the length L and the number of waves N to print.
Output
Print out N waves consisting of character C and of length L.
Note that you do not need to print ‘\n’ at the end of the output.