{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003edd 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-color: #f5f5f5;\n border: 1px solid #ccc;\n border-radius: 4px;\n}\u003c/style\u003e","sections":[{"title":"Description","value":{"format":"HTML","content":"\n\u003cdiv\u003e\n 给定两个字符串,求出在两个字符串中各取出一个子串使得这两个子串相同的方案数。两个方案不同当且仅当这两\n\u003c/div\u003e\n\u003cdiv\u003e\n 个子串中有一个位置不同。\n\u003c/div\u003e\n\u003cp\u003e\u003c/p\u003e\n"}},{"title":"Input","value":{"format":"HTML","content":"\n\u003cp\u003e两行,两个字符串s1,s2,长度分别为n1,n2。1 \u0026lt;\u003dn1, n2\u0026lt;\u003d 200000,字符串中只有小写字母\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n"}},{"title":"Output","value":{"format":"HTML","content":"\n\u003cp\u003e输出一个整数表示答案\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003eaabb\u003cbr\u003e\n bbaa\n\u003c/td\u003e\n \u003ctd\u003e10\n\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}