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:
It would be great help, if someone figure out mistake.
Update: A new Approach for solving ANTEATER:
Code is ez to understand on own.