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 *\texttt{*}.

Your task is very simple. You are given a grid height and weight and the output is the markup grid with the star symbol *\texttt{*}.

Input

Input starts with an integer TT (1T201 \le T \le 20), the number of test cases. Each of the following TT lines contains two integers HH and WW denoting the height and weight respectively. Here 2H302 \le H \le 30 and 2W302 \le W \le 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.

Sample

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

Discussion

Statistics


99% Solution Ratio

Dipto_DebdipEarliest, 5M ago

FAHIM.ctgFastest, 0.0s

Dipto_DebdipLightest, 0 B

bokaifShortest, 110B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.