Why runtime error ?

Hello guys,
This is my code, should be the same as most of the codes I see in the forum, I wonder why I got runtime error for input of {1} on judge, when I run it locally,it works fine for me, thank you.