在我的提交记录 https://www.luogu.com.cn/record/54757896 中,我在输出时写成了
for (re int i = 1; i <= n; i++)
{
int x = c[i];
if (vis[x])
{
continue;
}
vis[x] = true;
sort(scc[x].begin(), scc[x].end());
for (re int i = 0; i < scc[x].size(); i++)
{
write(scc[x][i]);
putchar(' ');
}
putchar('\n');
}
其中第二层循环用的还是 i。
这个 应该 是有影响的吧。
所以是数据过水?