这是原题部分原文(截自 qoj):
You are given a list of N distinct integers between 1 and N. These are arranged in a row such that the i-th integer from the left is ai, where 1 ≤ i ≤ N.
qoj link
所以 aaa 是一个 1∼n1\sim n1∼n 的排列,建议加上这一条件。
如果我眼瞎了没看到当我没说