Chef in fantasy league

I don’t know why my code when submitted is showing wrong, if anyone can help it would be a great gesture…
here is my coe for chef in fantasy league

https://www.codechef.com/viewsolution/32291244

Hello @zeel_pathak,
Actually in your code you have printed “Yes” but according to the question you need to print out it in smaller case letters,i.e, “yes” and “no”.

i tried but it shows up to be a wrong answer , the algorithm is right , i don’t know why it is showing wrong…help

@sumit_king thanks man! i got the answer right…

@zeel_pathak
The problem is with ur i variable even though u print it as yes and no .
Because in for loop of testcases as well as for ur implementation u used same variable
just change the variable of testcases for loop.

cool!