API Response (JSON)
{
"problem": {
"name": "[语言月赛202208] 数组调整",
"description": {
"content": "给出一个长度为 $n$ 的数组,第 $i$ 个数为 $a_i$。 为了调整这个数组,需要将第 $k$ 个数改变为 $-a_k$。 请你求出调整后的数组中所有数的和。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P1"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB3651"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给出一个长度为 $n$ 的数组,第 $i$ 个数为 $a_i$。\n\n为了调整这个数组,需要将第 $k$ 个数改变为 $-a_k$。\n\n请你求出调整后的数组中所有数的和。\n\n## Input\n\n输入共两行。\n\n输入的第一行为两个整数 $n,k$。\n\n输入的第二行为 $n$ 个整数,第 $i$ 个为 $a_i$。\n\n## Output\n\n输出一行一个整数,代表调整后的数组中所有数的和。\n\n[sampl...",
"is_translate": false,
"language": "English"
}
]
}