API Response (JSON)
{
"problem": {
"name": "「EZEC-11」Circle",
"description": {
"content": "有 $n$ 个人,编号为 $1$ 到 $n$,坐在环上玩约瑟夫。 他们从 $1$ 到 $m$ 循环报数,与正常约瑟夫不同的是,没有报到 $1$ 的人都会被淘汰,直至只有一个人活下来为止。 设活下来的人编号为 $x$,则记 $J_m(n)=x$。 给定 $m,l,r$,求 $\\sum_{i=l}^{r}J_m(i)$,输出对 $998244353$ 取模。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P7"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8181"
},
"statements": [
{
"statement_type": "Markdown",
"content": "有 $n$ 个人,编号为 $1$ 到 $n$,坐在环上玩约瑟夫。\n\n他们从 $1$ 到 $m$ 循环报数,与正常约瑟夫不同的是,没有报到 $1$ 的人都会被淘汰,直至只有一个人活下来为止。\n\n设活下来的人编号为 $x$,则记 $J_m(n)=x$。\n\n给定 $m,l,r$,求 $\\sum_{i=l}^{r}J_m(i)$,输出对 $998244353$ 取模。\n\n## Input\n\n**本题有多组...",
"is_translate": false,
"language": "English"
}
]
}