fork(1) download
  1. import math
  2. a = int(input())
  3. b = int(input())
  4. if a == 0 and b == 0:
  5. print ("INF")
  6. elif a == 0 and b != 0:
  7. print ("NO")
  8. elif b % a == 0:
  9. print (-b/a)
  10.  
Runtime error #stdin #stdout #stderr 0.16s 23764KB
stdin
20
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
EOFError: EOF when reading a line