{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e给定一个序列,询问区间内第k大的数。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"第一行为测试用例的数量。\u003cbr\u003e对于每个测试用例,第一行包含两个整数n和m(n,m \u003c\u003d 100000),表示序列中的整数数量和查询的数量。\u003cbr\u003e第二行包含n个整数,描述了序列。\u003cbr\u003e接下来的每行包含三个整数s,t,k。\u003cbr\u003e[s, t]表示区间,k表示区间[s, t]中的第k大的数。"}},{"title":"输出","value":{"format":"HTML","content":"对于每个测试用例,输出m行。每行包含第k大的数。"}},{"title":"样例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1 \r\n10 1 \r\n1 4 2 3 5 6 7 8 9 0 \r\n1 3 2 \u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}