{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"MD","content":"给你一个字符串,问它到底有多少个不同的子字符串\n\n第一行输入t,表示接下来输入多少组字符串,t不超过20,字符串长度不超过1000。对于每组输入,输出子字符串的个数。\n"}},{"title":"Sample Input","value":{"format":"MD","content":"2\nCCCCC\nABABA"}},{"title":"Sample Output","value":{"format":"MD","content":"5\n9"}},{"title":"Hint","value":{"format":"MD","content":"对于ABABA,它的子串有A, B, AB, BA, ABA, BAB, ABAB, BABA, ABABA 共9种"}}]}