数据点3WA,求调(QAQ)

P1111 修复公路

是第2个点WA(打错了)
by Lingo_is_a_cat @ 2024-03-27 18:27:29


已解决,原因:find中的while循环中f可能大于n,改用递归就行。 新的问题:为什么n和m开全局会WA!!!!(导致find中while无法做特判,只好用递归)
by Lingo_is_a_cat @ 2024-03-27 18:54:19


另:为什么f会大于n???
by Lingo_is_a_cat @ 2024-03-27 18:56:33


@[Lingo_is_a_cat](/user/747305) 我看看哈
by An_Idiot @ 2024-03-27 19:36:13


|