8 / 8
Jan 2016

Hello. This is my solution to the TEST problem in Python 3.4. How is it possible that it shows no output? is this a bug in the Python 3.4 judge? I am really curious about that...

import sys
while(True):
    x = int(sys.stdin.readline())
    if x == 42:
        break
    sys.stdout.write(str(x) + '\n')
  • created

    Jan '16
  • last reply

    Jan '16
  • 7

    replies

  • 1.1k

    views

  • 3

    users

  • 1

    like

because it says "wrong answer" and in the place where my output is supposed to be nothing appears. I have also tried with the print function instead of sys.stdout file-like object.

I submitted this code and it got Accepted. What steps are you using to submit? Be very specific.

I choose file to upload, select Python 3.4 in the combobox and submit. I don't know if it may something to do, but just in case, I am a Win10 OS within Chrome 47.0

I'm away from my computer. When I paste code into the window and then change the drop down it erases everything. Try changing the drop down to Python and then selecting the file.

8 days later

it does not work either. Neither uploading the file or pasting the code. I also noticed that there is 2 python 3.4 without any apparent difference.

For the compiler Python 3 (Python 3.4) it works, but not for the one that says Python3.4 (python 3.4)