test 1 (manual-1) failed on case 1: expected 22 got 13 input: 7 6 2 1 1 1 10 1 1 10 6 2 2 1 1 10 1 1 10 6 2 3 1 1 10 1 1 10 6 2 10 1 1 10 1 1 10 6 2 11 1 1 10 1 1 10 6 2 12 1 1 10 1 1 10 6 2 12 1 1 1 1 10 10 reference output: 22 12 2 2 2 0 -1 candidate output: 13 12 2 2 2 2 2 exit status 1