你这代码貌似样例都过不去/lengh 我不是很理解 $a[n - k]$ 是什么意思,而且你在更新每次的胜者后 $index$ 也没有被更新。 by Linune_Gump @ 2023-04-02 11:30:33