#Z01667. Kth number
Kth number
题目描述
Give you a sequence and ask you the kth big number of a inteval.
输入格式
The first line is the number of the test cases. For each test case, the first line contain two integer n and m (n, m The second line contains n integers, describe the sequence. Each of following m lines contains three integers s, t, k. [s, t] indicates the interval and k indicates the kth big number in interval [s, t]
输出格式
For each test case, output m lines. Each line contains the kth big number.
1
10 1
1 4 2 3 5 6 7 8 9 0
1 3 2
2
豫公网安备41072702000346号