Q 1115: DNA
Time limit: 1Sec Memory Limit: 128MB
Title Description
Since he was a child, Qiang has always loved life science and was always curious about where flowers, plants, birds and animals came from. Finally, when Qiang went to middle school, he was introduced to the sacred term, DNA. This made the one-track minded Qiang scratch his head, “If only I could draw it,” Qiang shouted. Help him now!
Input
The input contains multiple sets of test data. The first integer N (N<=15), N denotes the number of groups and each group contains two integers a,b. a denotes the number of rows of a unit DNA string, a is odd and 3<=a<=39. b denotes the degree of repetition (1<=b<=20).
Output
The shape of the output DNA, with a blank line between each set of outputs.
Sample Input
|
|
Sample Output
|
|
C Code
|
|