ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1389. Roadworks

WA 30
Posted by Disintegrator 8 Apr 2014 03:36
Any hints or tests?
Re: WA 30
Posted by Archi 3 Jul 2015 14:37
I have WA 30, what did you do to AC?
Re: WA 30
Posted by Kurbatov Egor 19 Oct 2017 14:45
Match
Re: WA 30
Posted by servy 18 Nov 2019 19:14
Ok, I got AC after lots of WA 30 attempts by iterating over the input in the reversed order, which makes no sense to me. My current best guess is that test #30 is broken, so there are at least two correct answers and it accepts only one of them as correct.

Of course, my algo can delete edges in different order depending on the order in which it iterates over them, but I'm pretty sure it always removes the maximum number of edges.