Getting wrong answer in "frogv"

problem : https://www.codechef.com/LRNDSA07/problems/FROGV
my solution : https://www.codechef.com/viewsolution/37714409

Please help me out. It gives correct result in sample input and also it seems everything is okay but why it is giving wrong answer.

You have to print Yes and No

1 Like

stupid mistake
@sebastian thanks :blush: