我有一个奇葩思路。。。

P2341 [USACO03FALL / HAOI2006] 受欢迎的牛 G

求大佬解答
by 远山淡影 @ 2018-12-15 16:05:06


如果访问过就return???
by SSerxhs @ 2018-12-15 16:08:49


@[远山淡影](/space/show?uid=59901) 看思路没看出问题,可能是细节打炸了
by 引领天下 @ 2018-12-15 16:09:12


@[SSerxhs](/space/show?uid=29826) 如果访问过就是一个环
by 远山淡影 @ 2018-12-15 16:11:32


@[远山淡影](/space/show?uid=59901) return??
by SSerxhs @ 2018-12-15 16:12:17


@[SSerxhs](/space/show?uid=29826) 对呀,回到上一层的dfs,难不成要用exit(0)?
by 远山淡影 @ 2018-12-15 16:13:18


和楼主一个思路。。。只不过更惨,连TLE都没有(大雾)。。。 https://www.luogu.org/record/show?rid=14703476
by xiaolou @ 2018-12-15 16:15:41


@[xiaolou](/space/show?uid=68675) 这怕不是数组开大了?
by 远山淡影 @ 2018-12-15 16:20:14


@[远山淡影](/space/show?uid=59901) 我也想知道啊。。。
by xiaolou @ 2018-12-15 16:21:13


@[远山淡影](/space/show?uid=59901) 是continue好吧,还没进dfs哪来的返回
by SSerxhs @ 2018-12-15 16:24:57


| 下一页