RE(NZEC) in IPCTRAIN

My all subtasks are giving AC except the the first subtask which is giving RE(NZEC). Please tell as to which corner case am I missing. Below is the link to my code. Thankyou!
https://www.codechef.com/viewsolution/14604588

1 Like

It really is kind hard to catch hold of :confused: