NC213138. SuffixArrayforFibonacci
描述
输入描述
The input consists of several test cases terminated by end-of-file. For each test case:
The first line contains three integers n, q and m.
The second line contains q integers .
*
*
*
*
* The sum of q does not exceed .
输出描述
For each test case, output q values , separated by spaces.
示例1
输入:
1 1 10 1 2 2 10 1 2 3 3 10 1 2 3 4 5 10 1 2 3 4 5 5 8 10 1 2 3 4 5 6 7 8
输出:
1 1 2 3 1 2 3 4 1 5 2 8 3 6 1 4 7 2 5