I tried doing BESTBATS, but somehow I am getting a WA. Can someone please see what the problem is?
I have sorted the Score array and then, I have checked which all elements are common between the list of elements left out and the list of elements included in the max sum. This was easy because this type of repetition would happen only with the lowest element of the selected list.
My code: http://ideone.com/SmA2cZ
Problem: http://www.codechef.com/problems/BESTBATS/