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

А платит ли герой за возвращение в свой город ? Если нет то есть более оптимальное решение чем авторский пример 1324 а не 1423.
Если да то примеры приведённые выше равноценны.
-=UDS=- : Gladyrev, Savinkov, Bannikov (170 sch) Re: Авторские тесты ? [2] // Problem 1535. The Hobbit or There and Back Again 4 Mar 2007 15:54
Платит, куда денется =)
Roma СЗШ№98 Re: Авторские тесты ? [1] // Problem 1535. The Hobbit or There and Back Again 4 Mar 2007 22:53
What's answer if n = 5 and n == 6?
Just brute force for n=5,6 to get it :) It's useful somtimes to solve the problem