Buy1Get1 - Wrong Answer

plz help me…
wats wrong with my code?
it gives WA – http://www.codechef.com/viewsolution/4285710

looks like u have misunderstood the problem,
ur program showing wrong answer for following testcases

**sasasasa

ssssaaaa

aaaaaaaa

SaSAsA

asdf

**
ans for for all testcases are 4

1 Like