{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"yass_top_edge_dummy\" style\u003d\"width: 1px; height: 1px; padding: 0px; margin: -9px 0px 0px; border-width: 0px; display: block;\"\u003e\r\n\t\u0026nbsp;\u003c/div\u003e\r\n\u003cdiv id\u003d\"yass_top_edge\" style\u003d\"background-image: url(\u0026quot;chrome://yass/content/edgebgtop.png\u0026quot;); background-attachment: scroll; background-position: center bottom; padding: 0px; margin: 0px 0px 8px -8px; border-width: 0px; height: 0px; display: block; width: 1px;\"\u003e\r\n\t\u0026nbsp;\u003c/div\u003e\r\n\u003ccenter\u003e\r\n\t\u003cp\u003e\r\n\t\t\u0026nbsp;\u003c/p\u003e\r\n\u003c/center\u003e\r\n\u003ctable bgcolor\u003d\"#0060F0\"\u003e\r\n\t\u003ctbody\u003e\r\n\t\t\u003ctr\u003e\r\n\t\t\t\u003ctd\u003e\r\n\t\t\t\t\u003cb\u003e\u003cfont color\u003d\"#C0FFFF\" size\u003d\"5\"\u003e\u0026nbsp;\u003ca href\u003d\"\" name\u003d\"SECTION0001000000000000000000\"\u003eTriangle Wave\u003c/a\u003e\u003c/font\u003e\u0026nbsp;\u003c/b\u003e\u003c/td\u003e\r\n\t\t\u003c/tr\u003e\r\n\t\u003c/tbody\u003e\r\n\u003c/table\u003e\r\n\u003cp\u003e\r\n\tIn this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003ch2\u003e\r\n\t\u003cfont color\u003d\"#0070E8\"\u003e\u003ca href\u003d\"\" name\u003d\"SECTION0001001000000000000000\"\u003eInput and Output\u003c/a\u003e\u003c/font\u003e\u003c/h2\u003e\r\n\u003cp\u003e\r\n\tThe 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.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tEach input set will contain two integers, each on a separate line. The first integer is the Amplitude; the second integer is the Frequency.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tFor each test case, the output must follow the description below. The outputs of two consecutive cases will be separated by a blank line.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tFor 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\u0026#39;\u0026#39; of each wave equals the Amplitude. The Amplitude will never be greater than nine.\u003c/p\u003e\r\n\u003cp\u003e\r\n\tThe waveform itself should be filled with integers on each line which indicate the ``height\u0026#39;\u0026#39; of that line.\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cb\u003eNOTE:\u003c/b\u003e There is a blank line after each separate waveform, \u003cb\u003eexcluding\u003c/b\u003e the last one.\u003c/p\u003e\r\n\u003ch2\u003e\r\n\t\u003cfont color\u003d\"#0070E8\"\u003e\u003ca href\u003d\"\" name\u003d\"SECTION0001002000000000000000\"\u003eSample Input\u003c/a\u003e\u003c/font\u003e\u003c/h2\u003e\r\n\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cpre\u003e\r\n1\r\n\r\n3\r\n2\u003c/pre\u003e\r\n\u003ch2\u003e\r\n\t\u003cfont color\u003d\"#0070E8\"\u003e\u003ca href\u003d\"\" name\u003d\"SECTION0001003000000000000000\"\u003eSample Output\u003c/a\u003e\u003c/font\u003e\u003c/h2\u003e\r\n\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e\r\n\u003cpre\u003e\r\n1\r\n22\r\n333\r\n22\r\n1\r\n\r\n1\r\n22\r\n333\r\n22\r\n1\u003c/pre\u003e\r\n\u003cp\u003e\r\n\t\u0026nbsp;\u003c/p\u003e"}}]}