delete pics to save space
This commit is contained in:
13
history_source/信息学奥赛一本通/1.3.10.cpp
Normal file
13
history_source/信息学奥赛一本通/1.3.10.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<cstdio>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double x1,x2,a,b,c;
|
||||
scanf("%lf%lf%lf",&a,&b,&c);
|
||||
x1=(-b+sqrt(b*b-4*a*c))/(2*a);
|
||||
x2=(-b-sqrt(b*b-4*a*c))/(2*a);
|
||||
printf("%.5lf\n%.5lf\n",x1,x2);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user