#1538. 螺旋字符串
螺旋字符串
Description
给出一个字符串,长度为L(1<=L<=100),要求你使用这个字符串的循环来构成一个大小为5*5的螺旋的矩形,字符串中只包含小写字母。
字符串的循环:比如字符串为hello,那么他的循环应该是hellohellohellohe...
顺序为:
比如,
给出:a
矩形为:
aaaaa
aaaaa
aaaaa
aaaaa
aaaaa
给出:nihao
nihao
nihan
oaooi
ahinh
hinoa
Input Format
输如一串字符串,仅包含小写字母。
Output Format
输出一个大小为5*5的字符矩阵
a
nihao
aaaaa
aaaaa
aaaaa
aaaaa
aaaaa
nihao
nihan
oaooi
ahinh
hinoa