在读入的时候不能用 while (--n) 而要 for (int i = n; --i;)。
while (--n)
for (int i = n; --i;)
nnn 在树状数组修改的时候要用。
也许这种弱智错误只有我会犯。