{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003ctable style\u003d\"border: none;\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style\u003d\"padding-right: 3pt; padding-left: 3pt;\"\u003e\n\t\t\tHasan is a computer science student who loves to analyze digital signals at the electronics lab. Recently you have started working with oscilloscope at the electronics lab. So Hasan asked to assist him for designing different digital signals like triangle waves. You must create a triangle wave shape in accordance with a given pair of amplitude and frequency in this task.\n\t\t\u003c/td\u003e\n\t\t\u003ctd style\u003d\"padding-right: 3pt; padding-left: 3pt;\"\u003e\n\t\t\t\u003cimg src\u003d\"https://encrypted-tbn0.gstatic.com/images?q\u003dtbn:ANd9GcR2myUfeiiPMjtrpUGS8ivAXG9zvvdLLAKLlw\u0026usqp\u003dCAU\" width\u003d\"220\" height\u003d\"160\"\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\n\u003c/table\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This line is followed by a blank line, and there is also a blank line between two consecutive inputs. \n\u003cbr\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Each input set will contain two positive integers, each on a separate line. The first integer is the Amplitude; the second integer is the Frequency. \n"}},{"title":"Output","value":{"format":"HTML","content":"For each test case, the output must follow the description below. The outputs of two consecutive cases will be separated by a blank line. \n\u003cbr\u003e\u003cbr\u003eFor the output of your program, you will be printing wave forms each separated by a blank line. The total number of wave forms equals the Frequency, and the horizontal “height” of each wave equals the Amplitude. The Amplitude will never be greater than nine. \n\u003cbr\u003e\u003cbr\u003eThe waveform itself should be filled with integers on each line which indicate the “height” of that line. \n\u003cbr\u003e\u003cstrong\u003eNOTE: There is a blank line after each separate waveform, excluding the last one."}},{"title":"Sample Input","value":{"format":"HTML","content":"1 \n\u003cbr\u003e\n\u003cbr\u003e\n3 \n\u003cbr\u003e\n1 \n"}},{"title":"Sample Output","value":{"format":"HTML","content":"1\u003cbr\u003e \n22 \u003cbr\u003e\n333 \u003cbr\u003e\n22 \u003cbr\u003e\n1 \n\u003cbr\u003e"}}]}