API Response (JSON)
{
"problem": {
"name": "F. AND-permutations",
"description": {
"content": "Given an integer _N_, find two permutations: 1. Permutation _p_ of numbers from 1 to _N_ such that _p__i_ ≠ _i_ and _p__i_ & _i_ = 0 for all _i_ = 1, 2, ..., _N_. 2. Permutation _q_ of numbers from",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF909F"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given an integer _N_, find two permutations:\n\n1. Permutation _p_ of numbers from 1 to _N_ such that _p__i_ ≠ _i_ and _p__i_ & _i_ = 0 for all _i_ = 1, 2, ..., _N_.\n2. Permutation _q_ of numbers from...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定一个整数 $N$,找到两个排列:\n\n$\\&$ 是按位与运算。\n\n输入包含一行,包含一个整数 $N$($1 ≤ N ≤ 10^5$)。\n\n对于每个子任务,如果所需的排列不存在,则输出一行包含单词 \"_NO_\";否则在第一行输出单词 \"_YES_\",并在第二行输出排列的 $N$ 个元素,元素之间用空格分隔。如果某个子任务存在多个可能的排列,输出任意一个即可。\n\n## Input\n\n输入包含一行,包...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ N \\in \\mathbb{Z} $ with $ 1 \\leq N \\leq 10^5 $. \nLet $ P = (p_1, p_2, \\dots, p_N) $ be a permutation of $ \\{1, 2, \\dots, N\\} $. \n\n**Constraints** \nFind two permutations $ P_...",
"is_translate": false,
"language": "Formal"
}
]
}