解的性质
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
对于二次方程 ax^2+bx+c=0 在实数范围内可能有解,可能无解,可能有重解,可能只有单一解,可能有不同解,可能非有理方程(a=b=0),请你一一作出判断。
Input
有一些整数组,每组整数有三个整数,对应方程的三个系数a,b,c。
Output
无解:输出“No Solution.”。 有一解:输出“One Solution.”。 有重解:输出“Same Solution.”。 有相异解:输出“Two Solution.”。 无理方程:输出“Nonsense.”。 每个结论占一行。
Sample
Input
1 2 1
5 2 6
1 5 6
Output
Same Solution.
No Solution.
Two Solution.
Comments