API Response (JSON)
{
"problem": {
"name": "[AGM 2023 资格赛] 反转",
"description": {
"content": "给定长度为 $N$ 的序列 $a$ 满足每个数都小于 $2^K$。你需要执行恰好 $P$ 次操作,每次操作是把其中一个数的某一个二进制位反转。最终你需要使得 $$\\sum_i\\sum_j a_i\\oplus a_j(i<j)$$ 最大,其中 $\\oplus$ 为按位异或运算。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 2000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9277"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定长度为 $N$ 的序列 $a$ 满足每个数都小于 $2^K$。你需要执行恰好 $P$ 次操作,每次操作是把其中一个数的某一个二进制位反转。最终你需要使得 \n\n$$\\sum_i\\sum_j a_i\\oplus a_j(i<j)$$\n\n最大,其中 $\\oplus$ 为按位异或运算。\n\n## Input\n\n第一行包含整数 $N、K、P$,保证 $1≤N≤10^5,1≤K≤30,1≤P≤N\\times...",
"is_translate": false,
"language": "English"
}
]
}