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

DixonD (Lviv NU) TO ADMINS: please, fix this! [2] // Problem 1535. The Hobbit or There and Back Again 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...
KIRILL(ArcSTU) Re: TO ADMINS: please, fix this! [1] // Problem 1535. The Hobbit or There and Back Again 5 Mar 2007 03:33
1*4+4*2+2*3+3*1=21
1*3+3*2+2*4+4*1=21
Sorry,I thought this must be
1*4+4*2+2*3=18
1*3+3*2+2*4=17