I have python 2.7 installed on my windows computer. I'm trying to email a puzzle answer to Spotify, which is running Python 2.6.6. When I submit my *.py source code, I'm getting the following error:
Run Time Error
Exited, exit status: 1
I only have "import sys". I've run tons of stress 开发者_JAVA技巧tests - possible inputs are 1 ≤ m ≤ 10 000 lines, I've tested with 1 million+ values with zero problems. I've tried printing with print & sys.stdout.write.
When I send in dummie test code (I run my full algorithm but only print garbage instead of my answer - ie, print "test!"), I get the expected "Wrong Answer" back.
I have no idea where to start debugging - any tips/help at all?
Thanks! -Sam
I got the same error. As I see it's not python output but just an answer from spotify bot that your program threw an exception in some tests. Maybe the real output isn't shown to prevent debugging using the bot.
When you print dummy data fist test fails and you get 'Wrong Answer'.
When you print real output first test may pass but next throw an exception and you get 'Run Time Error'.
I fixed one defect with possible exception in my script and Run Time Error went away.
精彩评论