You are given an integer sequence $a_ 0, a_ 1, ..., a_ {N-1}$ with the length $N$.
Process the following $Q$ queries in order:
l_i r_i k_i
: Print $k_ i+1$ th smallest value in $(a_ {l_ i}, a_ {l_ i + 1}, ..., a_ {r_ i - 1})$.$N$ $Q$
$a_ 0$ $a_ 1$ ... $a_ {N - 1}$
$l_ 0$ $r_ 0$ $k_ 0$
$l_ 1$ $r_ 1$ $k_ 1$
:
$l_ {Q-1}$ $r_ {Q-1}$ $k_ {Q-1}$
5 3 1 4 0 1 3 0 5 2 1 3 1 3 4 0
1 4 1
No. | Testdata Range | Score |
---|