|
|
вернуться в форум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 You are wrong. Read the task more carefully. You are wrang, becouse 1*4+4*2+2*3+3*1 = 21, 4*1+1*2+2*3+3*4 = 24. And moreover, the sequence must start with 1. |
|
|