WA in Galactik Football ...

Can’t find where I’ve done wrong…
Can any1 give some testcases where it goes wrong…
I’ve considered the case of a single component with type 2 countries

my code at iBh5ly - Online C++ Compiler & Debugging Tool - Ideone.com

Check the bounds on the cost. 0 <= |C|

2 Likes

here is the link to my solution CodeChef: Practical coding for everyone
gettin right answer for all above testcases bt getting WA plz help

thanx…got accepted…that was a silly mistake