Problems Description
<p> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14.399999618530273px;line-height:25px;">给出一items01字符串(长度不超过100),求其每一items子串出现的次数。</span> </p>
Input格式
<p> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14.399999618530273px;line-height:25px;">输入包含多行,每行一items字符串。</span> </p>
Output格式
<p> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14.399999618530273px;line-height:25px;">对每items字符串,输出它所有出现次数在1次以上的子串和这items子串出现的次数,输出按字典序排序。</span> </p>
Sample
Sample Input 1
1010100001
1010
Sample Output 1
0 6
00 3
000 2
01 3
010 2
1 4
10 3
101 2
1010 2
0 2
1 2
10 2
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪