API Response (JSON)
{
"problem": {
"name": "D. Coins and Queries",
"description": {
"content": "Polycarp has $n$ coins, the value of the $i$\\-th coin is $a_i$. It is guaranteed that all the values are integer powers of $2$ (i.e. $a_i = 2^d$ for some **non-negative** integer number $d$). Polycar",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1003D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Polycarp has $n$ coins, the value of the $i$\\-th coin is $a_i$. It is guaranteed that all the values are integer powers of $2$ (i.e. $a_i = 2^d$ for some **non-negative** integer number $d$).\n\nPolycar...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Polycarp 有 $n$ 枚硬币,第 $i$ 枚硬币的面值为 $a_i$。保证所有面值均为 $2$ 的整数次幂(即 $a_i = 2^d$,其中 $d$ 为某个非负整数)。\n\nPolycarp 需要回答 $q$ 个查询。第 $j$ 个查询由一个整数 $b_j$ 描述。该查询的答案是:使用他拥有的某些硬币子集来凑出面值 $b_j$ 所需的最少硬币数量。如果 Polycarp 无法凑出面值 $b_...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, q \\in \\mathbb{Z}^+ $ denote the number of coins and queries, respectively. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of coin values, where each $ a_i = 2^{d_i} $ fo...",
"is_translate": false,
"language": "Formal"
}
]
}