API Response (JSON)
{
"problem": {
"name": "D. A Determined Cleanup",
"description": {
"content": "_In order to put away old things and welcome a fresh new year, a thorough cleaning of the house is a must._ Little Tommy finds an old polynomial and cleaned it up by taking it modulo another. But now",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF934D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "_In order to put away old things and welcome a fresh new year, a thorough cleaning of the house is a must._\n\nLittle Tommy finds an old polynomial and cleaned it up by taking it modulo another. But now...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "为了整理旧物并迎接崭新的新年,彻底打扫房屋是必不可少的。\n\n小汤米找到了一个旧多项式,并通过对其取模另一个多项式进行了清理。但现在他后悔这样做了……\n\n给定两个整数 $p$ 和 $k$,找出一个系数为非负整数且严格小于 $k$ 的多项式 $f(x)$,使得它除以 $(x + k)$ 的余数为 $p$。即,$f(x) = q(x)·(x + k) + p$,其中 $q(x)$ 是一个多项式(不一定具...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ p \\in \\mathbb{Z} $, $ k \\in \\mathbb{Z} $ with $ 1 \\leq p \\leq 10^{18} $, $ 2 \\leq k \\leq 2000 $. \nLet $ f(x) = \\sum_{i=0}^{d-1} a_i x^i $ be a polynomial with coefficients $ a...",
"is_translate": false,
"language": "Formal"
}
]
}