API Response (JSON)
{
"problem": {
"name": "C2. Yet Another Nim Game (Counting version)",
"description": {
"content": "Alice and Bob decided to play the following game on $n$ piles of stones where the $i^(t h) (1 <= i <= n)$ pile contains $p_i$ stones, with Alice starting first : The player who cannot make a move los",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CFC2"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Alice and Bob decided to play the following game on $n$ piles of stones where the $i^(t h) (1 <= i <= n)$ pile contains $p_i$ stones, with Alice starting first :\n\nThe player who cannot make a move los...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "*这是该问题的困难版本。唯一的区别是存在第三个限制*。\n\n给定两个整数 $n$ 和 $x$。构造一个长度为 $2 n$ 的排列 $p$,使其满足:\n\n如果没有解,则输出 $-1$。\n\n输入的第一行包含一个整数 $t (1 lt.eq t lt.eq 10^5)$,表示测试用例的数量。\n\n每个测试用例占一行。\n\n每个测试用例的唯一一行包含两个整数 $n (2 lt.eq n lt.eq 10^5),...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ t \\in \\mathbb{Z} $ be the number of test cases. \nFor each test case $ k \\in \\{1, \\dots, t\\} $, let $ n_k \\in \\mathbb{Z} $ and $ x_k \\in \\mathbb{Z} $ be given, with: \n- $ 2 \\l...",
"is_translate": false,
"language": "Formal"
}
]
}