API Response (JSON)
{
"problem": {
"name": "少项式复合幂",
"description": {
"content": "给定多项式 $f(x)=\\sum_{i=1}^ma_ix^{b_i}$。定义 $f_1(x)=f(x)$,$f_n(x)=f(f_{n-1}(x))$。 给定模数 $p$。有 $q$ 次询问,每次给出 $x,y$,查询 $f_y(x)\\bmod p$ 的值。 **请注意 $m,p$ 的特殊数据范围。**",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9816"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定多项式 $f(x)=\\sum_{i=1}^ma_ix^{b_i}$。定义 $f_1(x)=f(x)$,$f_n(x)=f(f_{n-1}(x))$。\n\n给定模数 $p$。有 $q$ 次询问,每次给出 $x,y$,查询 $f_y(x)\\bmod p$ 的值。\n\n**请注意 $m,p$ 的特殊数据范围。**\n\n## Input\n\n输入的第一行包含三个正整数 $m,q,p$,分别为 $f$ 的项数,...",
"is_translate": false,
"language": "English"
}
]
}