Practice on Toph

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

Grid

By zobayer · Limits 1s, 512 MB

Grid markup is a process, where each of the grid cells is marked with a star symbol (*).

Your task is very simple. You are given a grid height and weight and the output is the markup grid with the star symbol (*).

Input

Input starts with an integer T (1<=T<=20), the number of test cases. Each of the following T lines contains two integers H and W denoting the height and weight respectively. Here 2 <= H <= 30 and 2 <= W <= 30.

Output

For each test case, print the test case serial on a line, followed by the markup grid as described in the problem statement. Check the sample input and output for details.

Sample

InputOutput
2
2 2
2 3
Case 1:
**
**
Case 2:
***
***

    Discussion

    Statistics


    96% Solution Ratio

    Dipto_DebdipEarliest, 1w ago

    FAHIM.ctgFastest, 0.0s

    Dipto_DebdipLightest, 0 B

    MobarokShortest, 138B

    Submit

    Login to submit