Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
You are given a quadratic equation with integer coefficients A * X2 + B * X + C = 0. It is guaranteed that A ≠ 0 and that the equation has at least one real root. Output the roots of the equation. The only line of input contains integers A, B and C ( - 1000 ≤ A, B, C ≤ 1000, A ≠ 0), separated by spaces. Output the roots of the equation in increasing order. If the equation has a single root of multiplicity 2, output it once. The root is considered to be correct if its absolute or relative error does not exceed 10 - 4. |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
12029856 |
mahmoudbadawy |
A |
July 13, 2015, 1:34 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
11516375 |
_SectumSempra |
A |
June 10, 2015, 2:21 a.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
11000632 |
K_D_M |
A |
May 4, 2015, 7:55 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10548641 |
Vesbat |
A |
April 2, 2015, 7:44 a.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10508522 |
aboura |
A |
March 28, 2015, 7:57 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10507811 |
KARM Lika1999 |
A |
March 28, 2015, 7:16 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10506381 |
dimal97 |
A |
March 28, 2015, 6:24 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10504348 |
Antonov |
A |
March 28, 2015, 5:36 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10503553 |
Latko bes4etnov |
A |
March 28, 2015, 5:23 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
|
10503037 |
deNULL |
A |
March 28, 2015, 5:08 p.m. |
OK |
Picat |
TESTS |
34 |
15 |
0 |
|
1500 |
remove filters
Back to search problems