Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Shimanto's Parallelogram

By mdvirus · Limits 1s, 512 MB

Shimanto loves to draw parallelograms. His parallelogram drawing’s length is 10 units and width is 8 units. Now he wants to draw N consecutive parallelograms.

If N = 1, the parallelogram will be:

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

If N = 2, the parallelograms will be:

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

Notice that, there is a one space gap between two or more consecutive parallelograms.

Input

First, you will be given a positive integer T (1 <= T < 100), which is the total number of test cases. For each test case line you will be given another number N (1 <= N <= 60).

Output

For each test case, you need to print N consecutive parallelograms to each line. You’ve to separate two or more consecutive parallelograms with 1 space. You should not print extra spaces at the end of the parallelograms.

Sample

InputOutput
2
1
2
   ##########
  #        #
 #        #
##########
   ########## ##########
  #        # #        #
 #        # #        #
########## ##########

Problemsetter: Mushfiqur Rahman (mdvirus)

Discussion

Statistics


96% Solution Ratio

mashfiqur404Earliest, 7M ago

AstDragneelFastest, 0.0s

Ashraful_jnuLightest, 0 B

jewel.samaShortest, 176B

Submit

Login to submit

Editorial

You need to use multiple loop. Use notebook, pen/pencil and your brain. Read more...

Related Contests

ATOEB: কোডshock_ 2019 Ended at 2019-12-19 11:30:00 +0000 UTC