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: https://www.codechef.com/viewsolution/30690189
tmw’s AC solution: https://www.codechef.com/viewsolution/30671547

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

2 Likes

Corrected my mistake. Thank you so much!