WA in LAPIN

Q: LAPIN Problem - CodeChef
P: https://onlinegdb.com/HksFU79yL
I am unable to find it out.

I just tried this testcase with your code:

1
gfb

and got the answer YES.

Edit:

Oh - you’re getting the wrong answer for the sample testcases, too. Ignore this post :slight_smile:

In line 6 there is a space after ‘cin’.