C语言考试练习题_一元二次方程(C语言) 摘要://解一元二次方程ax^2+bx+c=0的解。 #include<stdio.h> #include<math.h> int main(){ double a,b,c; s…… 题解列表 2023年06月05日 0 点赞 0 评论 279 浏览 评分:9.9
题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:想做这道题,需要先搞清楚一元二次方程,这里就不多说了直接套公式:x1 = -b+√b^2-4ac 2a …… 题解列表 2023年05月13日 0 点赞 0 评论 198 浏览 评分:9.9
是在努力进步的一天--一元二次方程 摘要:解题思路:蛮简单的,顺着解下去就好。注意事项:根据样例输出可知,需要保留两位数字,那么就需要设为double类型,头文件加上#include<iomanip>//要记住;结尾输出时cout<<fixe…… 题解列表 2022年01月23日 0 点赞 0 评论 434 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 摘要:```cpp #include #include using namespace std; // 解一元二次方程ax^2+bx+c=0的解 // 输出两个解,按照大小顺序输出,一个解时需要打…… 题解列表 2023年02月27日 0 点赞 1 评论 311 浏览 评分:9.9
C语言考试练习题_一元二次方程 (C++代码)水啊!!! 摘要:解题思路: 争取把这几页全部搞成绿色,水啊!!!参考代码:#include <iostream> #include <cmath> #include <iomanip> #define h…… 题解列表 2019年03月06日 0 点赞 1 评论 785 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c…… 题解列表 2022年12月21日 0 点赞 0 评论 234 浏览 评分:9.9
编写题解 1112: C语言考试练习题_一元二次方程(python) 摘要:运用一元二次求根公式即可,无需考虑无实数解的情况a,b,c = map(int, input().split()) x1 = (-b + pow(pow(b, 2) - 4 * a * c, 0.5…… 题解列表 2022年04月21日 0 点赞 0 评论 499 浏览 评分:9.9
还是比较简单的,昨天还以为我通关了想太多了 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())dta=b**2-4*a*cif dta>=0: x1=((-1)*b+dta**(1/2))/(2*a…… 题解列表 2022年05月27日 0 点赞 0 评论 215 浏览 评分:9.9
1112: C语言考试练习题_一元二次方程 摘要:```cpp #include #include #include using namespace std; int main() { double x1,x2,a,b,c,d,…… 题解列表 2022年09月10日 0 点赞 0 评论 433 浏览 评分:9.9
C语言考试练习题_一元二次方程(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,c,x1,x2,t; scanf("%lf %lf %lf",&a,&b,&c…… 题解列表 2022年11月04日 0 点赞 0 评论 232 浏览 评分:9.9