API Response (JSON)
{
"problem": {
"name": "C. Permutation Cycle",
"description": {
"content": "For a permutation _P_\\[1... _N_\\] of integers from 1 to _N_, function _f_ is defined as follows: Let _g_(_i_) be the minimum positive integer _j_ such that _f_(_i_, _j_) = _i_. We can show such _j_ a",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF932C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For a permutation _P_\\[1... _N_\\] of integers from 1 to _N_, function _f_ is defined as follows:\n\nLet _g_(_i_) be the minimum positive integer _j_ such that _f_(_i_, _j_) = _i_. We can show such _j_ a...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "对于整数 $1$ 到 $N$ 的一个排列 $P[1... N]$,函数 $f$ 定义如下:\n\n令 $g(i)$ 为满足 $f(i, j) = i$ 的最小正整数 $j$。我们可以证明这样的 $j$ 总是存在。\n\n给定 $N, A, B$,请找出一个 $1$ 到 $N$ 的排列 $P$,使得对所有 $1 ≤ i ≤ N$,$g(i)$ 等于 $A$ 或 $B$ 之一。\n\n输入仅一行,包含三个整数 $...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ N, A, B \\in \\mathbb{Z}^+ $ with $ 1 \\leq N \\leq 10^6 $, $ 1 \\leq A, B \\leq N $. \nLet $ P = (P[1], P[2], \\dots, P[N]) $ be a permutation of $ \\{1, 2, \\dots, N\\} $. \nDefine $ f...",
"is_translate": false,
"language": "Formal"
}
]
}