API Response (JSON)
{
"problem": {
"name": "[JRKSJ R4] Stirling",
"description": {
"content": "对于 $[1,n]$ 的排列 $p$,定义其“生成图”为:该图有 $n$ 个点,且 $\\forall 1\\le i\\le n$,无向边 $(i,p_i)$ 存在且仅存在这些边。 给定 $n$,求有多少个 $[1,n]$ 的排列满足其生成图恰有偶数个环(自环同样计入)。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P3"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8143"
},
"statements": [
{
"statement_type": "Markdown",
"content": "对于 $[1,n]$ 的排列 $p$,定义其“生成图”为:该图有 $n$ 个点,且 $\\forall 1\\le i\\le n$,无向边 $(i,p_i)$ 存在且仅存在这些边。\n\n给定 $n$,求有多少个 $[1,n]$ 的排列满足其生成图恰有偶数个环(自环同样计入)。\n\n## Input\n\n一个整数 $n$。\n\n## Output\n\n一个整数,表示答案。答案对 $998244353$ 取模。\n\n...",
"is_translate": false,
"language": "English"
}
]
}