{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e蒜头君手上有个长度为 $n$ 的数组 $A$。由于数组实在太大了,所以蒜头君也不知道数组里面有什么数字,所以蒜头君会经常询问在数组 $A$ 中,小于等于 $x$ 的最大值是多大?\u003c/p\u003e\n\u003ch3 id\u003d\"-\"\u003e输入格式\u003c/h3\u003e\n\u003cp\u003e第一行输入两个整数 $n$ 和 $m$,分别表示数组的长度和查询的次数。\u003c/p\u003e\n\u003cp\u003e接下来一行有 $n$ 个整数 $a_i$。\u003c/p\u003e\n\u003cp\u003e接下来 $m$ 行,每行有 $1$ 个整数 $x$,表示蒜头君询问的整数。\u003c/p\u003e\n\u003ch3 id\u003d\"-\"\u003e输出格式\u003c/h3\u003e\n\u003cp\u003e对于每次查询,如果可以找到,输出这个整数。\u003c/p\u003e\n\u003cp\u003e否则输出 $-1$。\u003c/p\u003e\n\u003ch3 id\u003d\"-\"\u003e数据范围\u003c/h3\u003e\n\u003cp\u003e$1 \\le n, m \\le 10^5, 0 \\le x \\le 10^6$。\u003c/p\u003e\n"}},{"title":"Sample 1","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\u003e10 5\n1 1 1 2 3 5 5 7 8 9\n0\n1\n4\n9\n10\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e-1\n1\n3\n9\n9\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cbr /\u003e"}}]}