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 http://ideone.com/iBh5ly

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

2 Likes

thanx…got accepted…that was a silly mistake

here is the link to my solution http://www.codechef.com/viewsolution/5478497
gettin right answer for all above testcases bt getting WA plz help