a614: 一元二次方程式
Tags :
Accepted rate : 65人/84人 ( 77% ) [非即時]
評分方式:
Tolerant

最近更新 : 2022-06-16 00:30

Content

求一元二次方程式 aX+ bX + c = 0 的根

Input

每組輸入共一行,內含三個整數 a, b, c 以空白隔開。

Output

Two different roots x1=?? , x2=??

Two same roots x=??

No real root

PS: 答案均為整數,若有兩個根則大者在前

Sample Input #1
1 3 -10
Sample Output #1
Two different roots x1=2 , x2=-5
Sample Input #2
1 0 0
Sample Output #2
Two same roots x=0
Sample Input #3
1 1 1
Sample Output #3
No real root
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (25%): 1.0s , <1K
公開 測資點#1 (25%): 1.0s , <1K
公開 測資點#2 (25%): 1.0s , <1K
公開 測資點#3 (25%): 1.0s , <1K
Hint :
Tags:
出處:
[管理者:
admin (Judge)
]


ID User Problem Subject Hit Post Date
1224
1452945-9@g.... (S2F38羅振軒)
a614
這題
76 2023-06-07 20:11