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 1156. Two Rounds

Whats wrong.Help with test 8!!
Posted by Серовиков Андрей 24 Apr 2007 21:17
Re: Whats wrong.Help with test 8!!
Posted by Petru Trimbitas 20 Mar 2012 01:42
+1
That's my story
Posted by Artem Khizha [DNU] 8 Jul 2012 18:21
I had WA#8 and miraculously found a bug in my backtracking&memorization with the following test:
> 50 2
> 99 100
> 98 99
The problem was in printing a solution, when N tasks for the first round are prepared properly, but the other N are contradictory (because I quit from backtracking too soon).

We probably wouldn't have experienced this if we had written a proper DP solution instead. :-)

Edited by author 08.07.2012 18:21