Logo
(追記) (追記ここまで)

26547번 - Square 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB52729124355.227%

문제

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.

제한

예제 입력 1

3
one
three
fifteen

예제 출력 1

one
n n
eno
three
h e
r r
e h
eerht
fifteen
i e
f e
t t
e f
e i
neetfif

힌트

출처

School > PLU High School Programming Contest > PLU 2018 > Novice 4번

School > PLU High School Programming Contest > PLU 2018 > Advanced 4번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /