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 1603. Erudite

Can we start the walk at any position of the puzzle? Or must start from the upper left corner?
I`ve used backtracking and started from all locations.
it`s very strange, but I`ve got WA3.
Some anothere ideas?
Vedernikoff Sergey Re: Can we start the walk at any position of the puzzle? [3] // Problem 1603. Erudite 1 Mar 2008 22:49
No, the idea is right, it gets AC. So, debug your program...
Thanks, I have found my bug))
Chmel_Tolstiy Re: Can we start the walk at any position of the puzzle? [1] // Problem 1603. Erudite 2 Mar 2008 03:20
I used DP and had problems with TL... BackTracking has faster solution ...
I solved it using Dp, but it needed some optimizations ...
Брэнд * // Problem 1603. Erudite 2 Mar 2008 22:01
I used DFS and had not any troubles)
Alexander (201 - P TNU) Re: Can we start the walk at any position of the puzzle? [2] // Problem 1603. Erudite 2 Mar 2008 00:17
Yes, I used backtracking too, and got wa3((
Alexander (201 - P TNU) Re: Can we start the walk at any position of the puzzle? [1] // Problem 1603. Erudite 7 Mar 2008 10:22
'\n' ))
I got WA3 too,why?