WA for MYSARA solution

Hello, I saw @tmwilliamlin 's editorial, and then wrote this solution. This solution is exactly like his, but i am getting WA. Can someone please help me identify what the problem is?

My solution: CodeChef: Practical coding for everyone
tmw’s AC solution: CodeChef: Practical coding for everyone

When you return your program doesn’t answer the rest of the test cases.

2 Likes

Corrected my mistake. Thank you so much!