I have never coded for such online competitions before.
This code works fine locally.
It works on the test case correctly.
Can you please tell me why am I getting a runtime error on submission?
Here is the problem - COURSE Problem - CodeChef
here is my attempt - codechef obstacle course - Pastebin.com