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

TO ADMINS: please, fix this!
Posted by DixonD (Lviv NU) 5 Mar 2007 03:29
In sample test answer for n=4 is
1 4 2 3
1 3 4 2
but correct answer is
1 3 2 4
1 3 4 2
Maybe, I'm not right, but my program had AC on contest...
Re: TO ADMINS: please, fix this!
Posted by KIRILL(ArcSTU) 5 Mar 2007 03:33
1*4+4*2+2*3+3*1=21
1*3+3*2+2*4+4*1=21
Re: TO ADMINS: please, fix this!
Posted by DixonD (Lviv NU) 5 Mar 2007 10:31
Sorry,I thought this must be
1*4+4*2+2*3=18
1*3+3*2+2*4=17