fork download
  1.  
  2. a = int(input())
  3. b = int(input())
  4. c = int(input())
  5. d = int(input())
  6. for i in range(1, 1001):
  7. if a * (i ** 3) + b * (i ** 2) + c * i + d == 0:
  8. print(i, end = " ")
Success #stdin #stdout 0.04s 9812KB
stdin
-1
2
-3
4
stdout
Standard output is empty