fork download
  1. input = open('input.txt', 'r')
  2. output = open('output.txt', 'w')
  3. x = int(input())
  4. if x > 0:
  5. print(1)
  6. elif x == 0:
  7. print(0)
  8. else:
  9. print(-1)
Runtime error #stdin #stdout #stderr 0.12s 23532KB
stdin
1
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'input.txt'