Problem2553--字符串枚举练习1

2553: 字符串枚举练习1

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

读入一个字符串s,以10个字符为一个单元,枚举该字符串的所有子串,输入的字符串长度保证不小于10.
例如,读入:
hello-world!
输出:
hello-worl
ello-world
llo-world!

Sample Input Copy

C++isTIOBE'sprogramminglanguageoftheyear2022

Sample Output Copy

C++isTIOBE
++isTIOBE'
+isTIOBE's
isTIOBE'sp
sTIOBE'spr
TIOBE'spro
IOBE'sprog
OBE'sprogr
BE'sprogra
E'sprogram
'sprogramm
sprogrammi
programmin
rogramming
ogrammingl
grammingla
ramminglan
amminglang
mminglangu
minglangua
inglanguag
nglanguage
glanguageo
languageof
anguageoft
nguageofth
guageofthe
uageofthey
ageoftheye
geoftheyea
eoftheyear
oftheyear2
ftheyear20
theyear202
heyear2022

Source/Category