Not working properly


#1

Hi,
With custom input my code working fine but it fails during submission.
61 16 23 9 -1 1 22 2 25 19 6 13 -1 24 14 -1 30 4 26 29 -1 -1 -1 -1 -1 3 -1 8 -1 -1 12 18 28 -1 10 -1 5 -1 17 11 21 7 -1 -1 -1 20 -1 -1 -1 -1 -1 15 -1 -1 -1 -1 -1 -1 -1 27 -1 -1
32
24