{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cpre\u003e\n给定一个长度为n的序列a[i]。给定m次询问。\n每次查询为l,r,w,表示在区间l,r中,问对于连续的长为w的一段中最小的数字的最大值是多少。\n\u003cpre\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cpre\u003e\n第一行包含一个整数n。表示序列的长度(1≤n≤1e5)。\n第二行包含n个以空格分隔的整数ai(1≤ai≤1e9)。\n第三行包含一个整数m,代表查询数(1≤m≤1e5)。\n接下来的m行包含查询的描述,每个查询由三个整数l,r和w。(1≤l≤r≤n,1≤w≤r-l + 1)\n\u003cpre\u003e"}},{"title":"Output","value":{"format":"HTML","content":"m个整数,每次询问的答案。"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cpre\u003e\nInput\n5\n1 2 2 3 3\n3\n2 5 3\n2 5 2\n1 5 5\n\nOutput\n2\n3\n1\n\u003cpre\u003e"}}]}