Hey, I tried to solve ANTEATER of june cookoff contest with using just set and vector.
However, I tried it and got all custom test cases passed but getting WA in the following code:
https://www.codechef.com/viewsolution/24957588
It would be great help, if someone figure out mistake.
Update: A new Approach for solving ANTEATER:
https://www.codechef.com/viewsolution/24958103
Code is ez to understand on own.