WA in name2

plzzz help … What’s wrong with my code?
iam getting WA everytime — CodeChef: Practical coding for everyone

Hi,
There is a simple mistake in your code.

You are using variable ‘i’ for the testcases loop and again you are using it inside !!

So just change the line no 9 to

for(int pp=0;pp<tstcse;pp++)

Thats it ! it will get accepted :).

Good luck.

1 Like