#4630. [UTS 2024] Big
[UTS 2024] Big
[UTS 2024] Big
题目描述
You are given two integers, $a$ and $b$. You concatenate all the numbers in the range $[a, b]$ in an order that produces the largest possible number, $x$.You are given queries of the form: --- what is the -th digit of ?
The digits of are -indexed, starting with the most significant one.
It is guaranteed that the length of will be at least .
输入格式
The first line contains two integers $a$ and $b$ ($0The second line contains one integer ().
The third line contains integers (), representing the queries. It is guaranteed that all answers exist.
输出格式
The only line of the output should contain a string of length $q$, where the $i$-th character will be the answer to the $i$-th query.8 13
4
0 3 8 9
9310