{"trustable":false,"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":"MD","content":"给定一个长度为 $n$ 的序列 $a$。请你找出一个异或和不小于 $k$ 的**最短连续子串**。\n\n如果有多个满足要求的连续子串,输出**左端点最小**的。\n\n如果不存在这样的序列,输出 `-1`。\n"}},{"title":"输入格式","value":{"format":"MD","content":"第一行一个正整数 $t(1\\le t\\le 100)$,表示数据组数。\n\n对于每组数据,第一行共有两个整数 $n,k(1\\le n\\le 10^5,0\\le k\\le 2^{30})$。\n\n第二行有一个长度 $n$ 的序列 $a(0\\le a_i\\le 2^{30})$。"}},{"title":"输出格式","value":{"format":"MD","content":"对于每组数据,输出你找到的这个子串的左端点和右端点。如果不存在这样的序列,输出 `-1`。"}},{"title":"样例","value":{"format":"MD","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\u003e3\n3 2\n1 2 2\n9 7\n3 1 3 2 4 0 3 5 1\n1 1919810\n114514\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2 2\n5 7\n-1\n\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}