|
|
back to boardwrong sample I think you gave wrong sample test for n=4 min is not 1 4 2 3 it is 4 1 2 3 because 1*4+4*2+2*3=18 but 4*1+1*2+2*3=12 Re: wrong sample You are wrong. Read the task more carefully. Re: wrong sample You are wrang, becouse 1*4+4*2+2*3+3*1 = 21, 4*1+1*2+2*3+3*4 = 24. Re: wrong sample And moreover, the sequence must start with 1. |
|
|