API Response (JSON)
{
"problem": {
"name": "[BalticOI 2022] Uplifting Excursion (Day1)",
"description": {
"content": "有 $2m+1$ 种物品,重量分别为 $-m,-m+1,\\ldots, m-1,m$。重量为 $i$ 的物品有 $a_i$ 个。 你需要拿走若干物品,使得这些物品重量之和恰好为 $l$。在此基础上,你需要拿尽可能多的物品。 问在物品重量之和恰好为 $l$ 的基础上,你最多能拿多少物品。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP8392"
},
"statements": [
{
"statement_type": "Markdown",
"content": "有 $2m+1$ 种物品,重量分别为 $-m,-m+1,\\ldots, m-1,m$。重量为 $i$ 的物品有 $a_i$ 个。\n\n你需要拿走若干物品,使得这些物品重量之和恰好为 $l$。在此基础上,你需要拿尽可能多的物品。\n\n问在物品重量之和恰好为 $l$ 的基础上,你最多能拿多少物品。\n\n## Input\n\n第一行两个数 $m,l$。\n\n第二行 $2m+1$ 个数,分别为 $a_{-m},a_...",
"is_translate": false,
"language": "English"
}
]
}