Well it has been almost 5 days and i am not able to find the mistake in the logic or code for the given problem. It passed subtask 1 which gave 20 points. Its just failing in the #7 #8 and #9 test case rest all cases passed .

I dont know if there is any problem with test cases.

**Used approach** - sort the given sums, find the duplicates, as they are sum of the entire sequence. For each duplicate find that the there exist a pair for which sum is the value of dupliacte. If any number is left without a pair break from loop and try again for other duplicateâ€¦

Problem - https://www.codechef.com/JAN20B/problems/CHEFPSA

**My submission** - https://www.codechef.com/viewsolution/28837435