1112: C语言考试练习题_一元二次方程
摘要:```cpp
#include
#include
#include
using namespace std;
int main()
{
double x1,x2,a,b,c,d,……
编写题解 1112: C语言考试练习题_一元二次方程
摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())deta = (b**2 - 4*a*c)**(1/2)x1 = (-b + deta)/(2*a)x2 ……
还是比较简单的,昨天还以为我通关了想太多了
摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())dta=b**2-4*a*cif dta>=0: x1=((-1)*b+dta**(1/2))/(2*a……
编写题解 1112: C语言考试练习题_一元二次方程(python)
摘要:运用一元二次求根公式即可,无需考虑无实数解的情况a,b,c = map(int, input().split())
x1 = (-b + pow(pow(b, 2) - 4 * a * c, 0.5……
编写题解 1112: C语言考试练习题_一元二次方程
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",……
C语言考试练习题_一元二次方程
摘要:```cpp
#include
using namespace std;
int main()
{
double a,b,c,s,x1,x2;
cin>>a>>b>>……
题解 1112: C语言考试练习题_一元二次方程
摘要:解题思路:注意事项:1.需要引用<math.h>库2.输出的两个值都是小数,要用double参考代码:#include<stdio.h>
#include<math.h>
int main()
……
Hifipsysta-1112-C语言考试练习题_一元二次方程(C++代码)求根公式法
摘要:
```cpp
#include
#include
using namespace std;
int main(){
double a,b,c,result;
cin……
是在努力进步的一天--一元二次方程
摘要:解题思路:蛮简单的,顺着解下去就好。注意事项:根据样例输出可知,需要保留两位数字,那么就需要设为double类型,头文件加上#include<iomanip>//要记住;结尾输出时cout<<fixe……