getting WA in twodogs problem in feb 2014 long

i am getting correct answer for all the cases.i just don’t know where am i faltering. My solution was accepted earlier but after rejudging it got WA and i am cent percent sure it is correct still WA…is there any trick on constraints…please help.

This is a question from an ongoing contest so we cannot help you in any way. Only thing i can suggest is try to make as many test cases as possible to test your code. Best of Luck!

1 Like

Please ignore this post…i got my mistake…:P…

//