시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 2704 1124 1023 43.274%

문제

아래 예제 출력과 같은 J박스를 출력하는 프로그램을 작성하시오.

입력

첫째 줄에 테스트 케이스의 개수가 주어진다. 각 테스트 케이스는 한 줄로 이루어져 있고, 박스의 크기가 주어진다. 박스의 크기는 10보다 작거나 같다.

출력

각 테스트 케이스에 대해서, 입력으로 주어지는 크기의 J박스를 출력한다. 박스와 박스 사이에는 빈 줄을 하나 출력한다.

예제 입력 1

3
3
5
4

예제 출력 1

###
#J#
###

#####
#JJJ#
#JJJ#
#JJJ#
#####

####
#JJ#
#JJ#
####
W3sicHJvYmxlbV9pZCI6IjUzNTQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJKXHViYzE1XHVjMmE0IiwiZGVzY3JpcHRpb24iOiI8cD5cclxuXHRcdWM1NDRcdWI3OTggXHVjNjA4XHVjODFjIFx1Y2Q5Y1x1YjgyNVx1YWNmYyBcdWFjMTlcdWM3NDAgSlx1YmMxNVx1YzJhNFx1Yjk3YyBcdWNkOWNcdWI4MjVcdWQ1NThcdWIyOTQgXHVkNTA0XHViODVjXHVhZGY4XHViN2E4XHVjNzQ0IFx1Yzc5MVx1YzEzMVx1ZDU1OFx1YzJkY1x1YzYyNC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlxyXG5cdFx1Y2NhYlx1YzlmOCBcdWM5MDRcdWM1ZDAgXHVkMTRjXHVjMmE0XHVkMmI4IFx1Y2YwMFx1Yzc3NFx1YzJhNFx1Yzc1OCBcdWFjMWNcdWMyMThcdWFjMDAgXHVjOGZjXHVjNWI0XHVjOWM0XHViMmU0LiBcdWFjMDEgXHVkMTRjXHVjMmE0XHVkMmI4IFx1Y2YwMFx1Yzc3NFx1YzJhNFx1YjI5NCBcdWQ1NWMgXHVjOTA0XHViODVjIFx1Yzc3NFx1YjhlOFx1YzViNFx1YzgzOCBcdWM3ODhcdWFjZTAsIFx1YmMxNVx1YzJhNF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