{"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给定N个正整数,表示为x0,x1 ... xN-1。然后给出一些区间[l, r]。对于每个区间,您需要找到一个数字x,使得\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/c252349c7b61f8755ba301ac0c8f8def?v\u003d1713032203\"\u003e尽可能小!\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"第一行是一个整数T(T \u003c\u003d 10),表示测试用例的数量。对于每个测试用例,首先是一个整数N(1 \u003c\u003d N \u003c\u003d 100,000)。然后在下一行输入N个正整数x(1 \u003c\u003d x \u003c\u003d 1,000,000,000)。最后,输入一个整数Q(1 \u003c\u003d Q \u003c\u003d 100,000),表示有Q个查询。每个查询包含两个整数l,r(0 \u003c\u003d l \u003c\u003d r \u003c N),表示您应该处理的区间。\u003cbr\u003e\u003cbr\u003e"}},{"title":"输出","value":{"format":"HTML","content":"对于第k个测试用例,首先在单独的一行输出“Case #k:”。然后输出Q行,每行是\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/c252349c7b61f8755ba301ac0c8f8def?v\u003d1713032203\"\u003e的最小值。在每个测试用例之后输出一个空行。"}},{"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\u003e2\r\n\r\n5\r\n3 6 2 2 4\r\n2\r\n1 4\r\n0 2\r\n\r\n2\r\n7 7\r\n2\r\n0 1\r\n1 1\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1:\r\n6\r\n4\r\n\r\nCase #2:\r\n0\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}