fork download
  1. from sympy import Symbol, solve
  2. a, b, c = map(int, input().split(' '))
  3. x = Symbol('x')
  4. roots = solve(a * x * x + b * x + c, x, dict=True)
  5. print(roots)
  6.  
Runtime error #stdin #stdout #stderr 0.02s 9936KB
stdin
4 9 1
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
ImportError: No module named 'sympy'