API Response (JSON)
{
"problem": {
"name": "eqal_range",
"description": {
"content": "给定一个数列 $a = [a_1, a_2, \\dots, a_n]$,有 $q$ 次询问,每次询问给出一个整数 $x$,你要回答:序列 $a$ 里最小的比 $x$ 大的数是多少?$a$ 里最大的比 $x$ 小的数是多少?",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P2"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB4362"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给定一个数列 $a = [a_1, a_2, \\dots, a_n]$,有 $q$ 次询问,每次询问给出一个整数 $x$,你要回答:序列 $a$ 里最小的比 $x$ 大的数是多少?$a$ 里最大的比 $x$ 小的数是多少?\n\n## Input\n\n第一行是两个整数,表示序列长度 $n$ 和询问次数 $q$。 \n第二行有 $n$ 个整数表示 $a_1, a_2, \\dots a_n$。 \n接下来 ...",
"is_translate": false,
"language": "English"
}
]
}