Https://ide.codingblocks.com/s/111744

Can you tell me the test case for which my ans goes wrong. I have got 66 points out of 100 in this.

hey @shivanshmittal25, you are wrong answer for input like this
Input :
4
12 15 3 5

Expected Output :
20

Your Output :
17

Can you explain me why expected output is 20 in this??

hey @shivanshmittal25, piyush will pick 5, then nimit will pick 12,then piyush will pick 15 and nimit left with 3 only.