Hide
Problem H
Suffix Sorting
Input
The input consists of less than
Output
For each test case, output a line containing
Sample Input 1 | Sample Output 1 |
---|---|
popup 5 0 1 2 3 4 Popup 5 0 1 2 3 4 Suffixes are jolly fun, eh old chap? 7 35 3 18 33 26 6 2 |
1 4 0 2 3 0 1 4 2 3 17 18 19 20 21 22 23 |