Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

BESTBATS WA

$
0
0

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/


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>