警示后人,如果你 10pts
查看原帖
警示后人,如果你 10pts
675466
zzx0102楼主2023/7/14 17:32

最后应为

for(int i = 2; i <= n; i++) ans[a[i]]--;

而不是

for(int i = 2; i <= n; i++) ans[i]--;
2023/7/14 17:32
加载中...