Problem: wavelet

Problem IDwavelet
Difficulty level (0..10)2
Maximum runtime1 minute
Original problem
Seen at

In this problem you are to generate a triangular wave form according to specified numbers.

The input will contain three integers (K,L,M) separated by white-space (spaces, new-lines, tabs). There may be leading or trailing white-space. The first one is the number of peaks. The second is the "inter-peaks" height. The third one is the peaks height.

0<K<10
1<L<10
1<L<=M<10

For the output of your program, you will be printing wave forms as show in the example. No blank lines, leading or trailing space should exist.

Sample input:

5 3 5

Sample output:

#
##
###
####
#####
####
###
####
#####
####
###
####
#####
####
###
####
#####
####
###
####
#####
####
###
##
#

Sample input:

2
2
2

Sample output:

#
##
##
#