API Response (JSON)
{
"problem": {
"name": "[语言月赛 202309] 真的没有 idea 啦",
"description": {
"content": "给定一个字符串 $s$ 和一个字符串 $t$,请你求出:$s$ 有多少对前缀后缀对 $(x, y)$,使得 $yx$ 等于 $t$。 形式化的,设 $n$ 是字符串 $s$ 的长度,你要求出有多少对 $(i, j)$ 满足 $1 \\leq i, j \\leq n$ 使得 $s_{j}s_{j+1}\\dots s_ns_1s_2\\dots s_i = t$。 其中 $s_i$ 表示 $s$ 的第",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P2"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB3859"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一个字符串 $s$ 和一个字符串 $t$,请你求出:$s$ 有多少对前缀后缀对 $(x, y)$,使得 $yx$ 等于 $t$。\n\n形式化的,设 $n$ 是字符串 $s$ 的长度,你要求出有多少对 $(i, j)$ 满足 $1 \\leq i, j \\leq n$ 使得 $s_{j}s_{j+1}\\dots s_ns_1s_2\\dots s_i = t$。\n\n其中 $s_i$ 表示 $s$ 的第...",
"is_translate": false,
"language": "English"
}
]
}