Submit | All submissions | Best solutions | Back to list |
HSTRIPS - Horizontal strips pattern |
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
.....
Added by: | jack(chakradarraju) |
Date: | 2018-05-09 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
hide comments
2018-05-11 20:51:42 Francky
@psetter : you might have not set 'enable' for test case #0. Please correct problem and test every problem before publication. |
|
2018-05-11 18:56:49
Admins, please hide the problem and ask the psetter to set it correctly. |
|
2018-05-09 19:21:44
Getting Internal Error even when submitting code that does nothing. Please look into this. |