API Response (JSON)
{
"problem": {
"name": "无知时诋毁原神",
"description": {
"content": "纳西妲有一个 $0\\sim n-1$ 的排列 $c$。她希望你构造两个同样为 $0\\sim n-1$ 的排列的 $a,b$,满足 $\\forall i\\in[1,n],c_i=(a_i+b_i)\\bmod n$。如果纳西妲的要求无法被满足,请输出 $-1$。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1500,
"memory_limit": 262144
},
"difficulty": {
"LuoguStyle": "P3"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8880"
},
"statements": [
{
"statement_type": "Markdown",
"content": "纳西妲有一个 $0\\sim n-1$ 的排列 $c$。她希望你构造两个同样为 $0\\sim n-1$ 的排列的 $a,b$,满足 $\\forall i\\in[1,n],c_i=(a_i+b_i)\\bmod n$。如果纳西妲的要求无法被满足,请输出 $-1$。\n\n## Input\n\n第一行,一个整数 $n$。\n\n第二行,$n$ 个整数,表示排列 $c$。\n\n## Output\n\n如果不存在满足要求的...",
"is_translate": false,
"language": "English"
}
]
}