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 1535. The Hobbit or There and Back Again

How to solve the problem?
Posted by prtest 20 Mar 2008 15:07
Is there someone who can tell me the algorithm?
Thx...
Re: How to solve the problem?
Posted by Vedernikoff Sergey 23 Mar 2008 04:09
Write brute-force algo and you'll find how does optimal solution look like...