一个问题 or hack
查看原帖
一个问题 or hack
305532
mango09楼主2021/10/12 14:08

在我的提交记录 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');
	}

其中第二层循环用的还是 ii

这个 应该 是有影响的吧。

所以是数据过水?

2021/10/12 14:08
加载中...