API Response (JSON)
{
"problem": {
"name": "[集训队互测 2023] 树哈希",
"description": {
"content": "这是一道 [模板题](https://uoj.ac/problem/763)。 给定正整数 $n,q,mod$。保证 $mod$ 是质数。 对于一棵以点 $1$ 为根的有根树 $T$,设 $s(T)$ 为这棵树中最多能选出多少个互不同构的子树(也就是这颗树本质不同的子树个数),那么这个树的权值 $w(T) = q^{s(T)}$。 对于所有 $1 \\le m \\le n$,输出所有大小为 $",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 4000,
"memory_limit": 2097152
},
"difficulty": {
"LuoguStyle": "P7"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10002"
},
"statements": [
{
"statement_type": "Markdown",
"content": "这是一道 [模板题](https://uoj.ac/problem/763)。\n\n给定正整数 $n,q,mod$。保证 $mod$ 是质数。\n\n对于一棵以点 $1$ 为根的有根树 $T$,设 $s(T)$ 为这棵树中最多能选出多少个互不同构的子树(也就是这颗树本质不同的子树个数),那么这个树的权值 $w(T) = q^{s(T)}$。\n\n对于所有 $1 \\le m \\le n$,输出所有大小为 $...",
"is_translate": false,
"language": "English"
}
]
}