ANONYMOUS wrote:
Hi,
I am trying to run my code for Flip on DOM Judge, and it seems to not be providing my program with inputs.
I ran a test to determine whether or not it was reading my inputs properly
http://domjudge.gozz.au/team/submission/6753
startInp = input().split(" ") rows = int(startInp[0]) cols = int(startInp[1]) for r in range(rows): if r == rows-1: print("WAITING") print(input()) if r == rows-1: print("DONE")
On the first sample it gave me this output:
.xx... xxx... ....xx ...... xxxxxx WAITING
The test case has an additional row of "......" that should occur at the bottom, but instead it just waits and the code hangs, never receiving an input.
Does anyone have any idea why it might be doing this?
Thanks
I checked this submission manually.
This is happening because your program is crashing before you finish reading the input. That's generally what RUN ERROR means.
RUN ERROR basically means your Python script has crashed. This can happen for various reason many of which you are probably familiar with: running out of memory, invalid list indexing, etc. I suggest generating a large case and testing it locally. Be aware that the memory limit on the server is 1Gb.