for following test case my code http://www.codechef.com/viewsolution/3532424 gave wa but its accepted ....after some modification i resubmit a new code that give right ans and accepted.
please check for test case 62 20 4 10 12 16 18 3 12 21 23 5 21 25 29 28 27 4 28 32 34 38 4 32 42 45 49 5 49 52 55 57 62 6 2 4 6 8 9 10 8 9 3 1 4 6 8 12 18 9 2 4 5 9 17 43 21 12 22 1 8 1 9 1 20 1 34 1 24 1 5 1 45 1 56 1 3 1 5 2 4 8
reevaluate all submitted problem that accepted bcz of weak testing