SquareEquation/Dr.Slink
SquareEquation/shaleka
t1from math import *t1from math import *
22
3a, b, c = eval(input())3a, b, c = eval(input())
4d = b ** 2 - 4 * a * c4d = b ** 2 - 4 * a * c
5if d < 0 or a == b == 0 and c != 0:5if d < 0 or a == b == 0 and c != 0:
6    print(0)6    print(0)
7elif a == b == c == 0:7elif a == b == c == 0:
8    print(-1)8    print(-1)
9elif d == 0:9elif d == 0:
10    print(-b / (2 * a))10    print(-b / (2 * a))
11else:11else:
12    x1 = (-b + sqrt(d)) / (2 * a)12    x1 = (-b + sqrt(d)) / (2 * a)
13    x2 = (-b - sqrt(d)) / (2 * a)13    x2 = (-b - sqrt(d)) / (2 * a)
14    if x1 < x2:14    if x1 < x2:
15        print(x1, x2)15        print(x1, x2)
16    else:16    else:
17        print(x2, x1)17        print(x2, x1)
1818
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op