#B. C++-一元二次方程求解

    Type: Default 1000ms 256MiB

C++-一元二次方程求解

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

C++-一元二次方程求解

通过公式法,我们可以解出所有一元二次方程,但是在使用公式的过程中计算非常复杂,所以制作出了这个可以通过二次项系数、一次项系数、常数项(a、b、c)直接求得一元二次方程的解的代码。 image

Format

Input

Output

Samples

1
-4
3
3 1
1
2
1
-1
1
2
2
No

Limitation

1s, 1024KiB for each test case.

一元二次方程

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2024-6-22 0:00
End at
2024-7-7 0:00
Duration
360 hour(s)
Host
Partic.
5