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
B'You are given a quadratic equation with integer coefficients A xe2 x80 x89* xe2 x80 x89X2 xe2 x80 x89+ xe2 x80 x89B xe2 x80 x89* xe2 x80 x89X xe2 x80 x89+ xe2 x80 x89C xe2 x80 x89= xe2 x80 x890. It is guaranteed that A xe2 x80 x89 xe2 x89 xa0 xe2 x80 x890 and that the equation has at least one real root. Output the roots of the equation. The only line of input contains integers A, xe2 x80 x89B and C ( xe2 x80 x89- xe2 x80 x891000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89A, xe2 x80 x89B, xe2 x80 x89C xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, xe2 x80 x89A xe2 x80 x89 xe2 x89 xa0 xe2 x80 x890), 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 xe2 x80 x89- xe2 x80 x894.'... |
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