시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 300 | 160 | 135 | 52.124% |
Your mother has asked you to create a template for the squares of a quilt she is making. Her quilt will be based on words! Print out a square of the given word, in the style shown in the example output.
The first line will contain a single integer n that indicates the number of data sets that follow. Each data set will consist of a single line with one word of length k (0 < k < 100).
Output the square in the format shown in the example output. There are no spaces between data sets. The final square should be both as wide and as tall as the length of the word.
3 one three fifteen
one n n eno three h e r r e h eerht fifteen i e f e t t e f e i neetfif