API Response (JSON)
{
"problem": {
"name": "Sum of Pow of Mod of Linear",
"description": {
"content": "You are given integers $N,M,A,B,X,R$. Find the remainder when $\\displaystyle \\sum_{k=0}^{N-1} X^{(Ak+B) \\bmod M}$ is divided by $R$. You are given $T$ test cases, so find the answer for each of them.",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc429_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given integers $N,M,A,B,X,R$.\nFind the remainder when $\\displaystyle \\sum_{k=0}^{N-1} X^{(Ak+B) \\bmod M}$ is divided by $R$.\nYou are given $T$ test cases, so find the answer for each of them.\n...",
"is_translate": false,
"language": "English"
}
]
}