萌新求助,提交AC,本地WA

P3629 [APIO2010] 巡逻

我的code在于考虑必须建两条边,但实际上建一条边反而更优,是洛谷需要加入这组hack数据还是样例和我对题目的理解有误?
by ShineEternal @ 2019-05-02 11:53:25


~~反正应该一定有地方不妥~~ @[chen_zhe](/space/show?uid=8457) @[Anguei](/space/show?uid=53062)
by ShineEternal @ 2019-05-02 11:57:28


此贴完结
by ShineEternal @ 2019-05-02 12:06:47


@[vercont](/space/show?uid=45475) 新建的路可以是自环啊
by 7KByte @ 2019-07-03 17:03:19


@[Gang_Leader](/space/show?uid=119261) 谢谢大佬
by ShineEternal @ 2019-07-03 17:08:19


|