HSTRIPS - Horizontal strips pattern

no tags 

Generate following pattern for given size:

    .....
    xxxxx
    .....
    xxxxx
    .....

Input

Each test file has n test cases, first line of input has integer n denoting number of test cases, followed by n lines each with a integer denoting the size s.

0 < n < 10

3 <= s <= 50

Output

For each test case print the above mentioned pattern and an empty line.

Example

Input:
3
4
3
5 Output: ....
xxxx
....
xxxx

...
xxx
...

.....
xxxxx
.....
xxxxx
.....

hide comments
Francky: 2018-05-11 20:51:42

@psetter : you might have not set 'enable' for test case #0. Please correct problem and test every problem before publication.

nadstratosfer: 2018-05-11 18:56:49

Admins, please hide the problem and ask the psetter to set it correctly.

nadstratosfer: 2018-05-09 19:21:44

Getting Internal Error even when submitting code that does nothing. Please look into this.


Added by:jack(chakradarraju)
Date:2018-05-09
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All