smart phone problem

My answer is https://www.codechef.com/viewsolution/15589962

why there is runtime error…help me …

The contest is still going so I get access denied when I click the link you gave. Please paste it on ideone or something for me to see it. :slight_smile:

please see this