This is my solution for a zco problem but I am getting runtime errors in some testcases . Anyone can please figure out reason of getting those errors.
Zonal Computing Olympiad is round 1 out of 3 (i.e. beginner) for selection into Indian IOI team.
Getting run time errors on 3 sub-cases