API Response (JSON)
{
"problem": {
"name": "E. Congruence Equation",
"description": {
"content": "Given an integer $x$. Your task is to find out how many positive integers $n$ ($1 \\leq n \\leq x$) satisfy n \\\\cdot a^n \\\\equiv b \\\\quad (\\\\textrm{mod}\\\\;p), where $a, b, p$ are all known constants.",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF919E"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given an integer $x$. Your task is to find out how many positive integers $n$ ($1 \\leq n \\leq x$) satisfy n \\\\cdot a^n \\\\equiv b \\\\quad (\\\\textrm{mod}\\\\;p), where $a, b, p$ are all known constants.\n\n#...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个整数 $x$。你的任务是找出有多少个正整数 $n$($1 lt.eq n lt.eq x$)满足 $$n \\cdot a^n \\equiv b \\quad (\\textrm{mod}\\;p),$$ 其中 $a, b, p$ 均为已知常数。\n\n仅一行包含四个整数 $a, b, p, x$($2 lt.eq p lt.eq 10^6 + 3$,$1 lt.eq a, b < p$,$1 lt....",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ a, b, p \\in \\mathbb{Z} $ be given constants with $ p $ prime, $ 2 \\leq p \\leq 10^6 + 3 $, $ 1 \\leq a, b < p $. \nLet $ x \\in \\mathbb{Z} $ with $ 1 \\leq x \\leq 10^{12} $. \n\n**C...",
"is_translate": false,
"language": "Formal"
}
]
}