runtime(nzec) error in ROBOGAME

Question - https://www.codechef.com/problems/ROBOGAME

My Solution - https://www.codechef.com/viewsolution/21724980

it works fine on my system, but gives error on codechef submission.

//