6 4 1 1 4 5 1 4 1 6 3 1 6 4 1 1 4 1 5 4
3 5 1 4
{
"problem": {
"name": "【模板】离线二维数点",
"description": {
"content": "给你一个长为 $n$ 的序列 $a$,有 $m$ 次询问,每次询问给定 $l,r,x$,求 $[l,r]$ 区间中小于等于 $x$ 的元素个数。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 3000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P4"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP10814"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给你一个长为 $n$ 的序列 $a$,有 $m$ 次询问,每次询问给定 $l,r,x$,求 $[l,r]$ 区间中小于等于 $x$ 的元素个数。\n\n## Input\n\n第一行两个数 $n,m$。\n\n第二行 $n$ 个数表示序列 $a$。\n\n之后 $m$ 行,每行三个数 $l,r,x$ 表示一次询问。\n\n## Output\n\n对每个询问,输出一行一个数表示答案。\n\n[samples]\n\n## Bac...",
"is_translate": false,
"language": "English"
}
]
}