Java Runtime error but run in my pc

http://www.codechef.com/viewsolution/2419322
I get runtime error upon submission. But it runs well in my pc. What is the problem. If you would specify me it would be of great help.

//