一定要谨记自己加点删点的写法,比如
void I(int x) { q += !c[x]++; }
或者
void I(int x) { q += !c[a[x]]++; }
不要记混了,否则修改的时候有可能写错