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

test 4
Posted by Mihail Minkov 18 Sep 2007 13:33
I did some research and I'm sure I've got the correct algorithm.
But i get WA on test 4. I'm thinking it could be something with the way I print the numbers (new lines and such).
Could anyone please tell me what is N on test 4?
Re: test 4
Posted by AlexF [USTU Frogs] 18 Sep 2007 14:19
Check it yourself)) Smth like if (n > 50) while (1);
Re: test 4
Posted by Giorgi Saghinadze (Tbilisi SU) 18 Sep 2007 18:34
write brute force program and you will find your mistake
Re: test 4
Posted by Mihail Minkov 19 Sep 2007 15:55
Thanks, that was a nice trick i hadn't thought of before :)
Re: test 4
Posted by AlexF [USTU Frogs] 19 Sep 2007 23:15
I think it's rather usefull trick))