编写题解 1112: C语言考试练习题_一元二次方程 解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())x=-math.sqrt(-c+(b/2*a)**2)-b/2*ay=math.sqrt(-c+(b/2*a)**2)-b/2*aifx 题解列表 2021年12月10日 0 点赞 0 评论 681 浏览 评分:0.0 编写题解 1112: C语言考试练习题_一元二次方程(哈哈哈,笨比写法) 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())q=b*b-4*a*cm=(-b+pow(q,0.5))/2n=(-b-pow(q,0.5))/2if q>0…… 题解列表 2022年12月17日 0 点赞 0 评论 603 浏览 评分:0.0 常规思路——一元二次方程求解——C语言 摘要:解题思路:知道数学解一元二次方程的公式即可;引用sqrt函数进行开方。注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ double…… 题解列表 2022年12月12日 0 点赞 0 评论 507 浏览 评分:0.0 1112-一元二次方程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int a,b,c; cin >>a …… 题解列表 2022年10月06日 0 点赞 0 评论 514 浏览 评分:0.0 编写题解 1112: C语言考试练习题_一元二次方程 解题思路:注意事项:参考代码:a,b,c=map(int,input().split())deta=(b**2-4*a*c)**(1/2)x1=(-b+deta)/(2*a)x2=(-b-deta)/(2*a)print("%.2f%.2f"%(x1,x2)) 题解列表 2022年06月01日 0 点赞 0 评论 503 浏览 评分:0.0 编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",…… 题解列表 2022年03月09日 0 点赞 0 评论 622 浏览 评分:0.0 C语言考试练习题_一元二次方程 摘要:```cpp #include using namespace std; int main() { double a,b,c,s,x1,x2; cin>>a>>b>>…… 题解列表 2022年03月05日 0 点赞 0 评论 441 浏览 评分:0.0 题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:1.需要引用<math.h>库2.输出的两个值都是小数,要用double参考代码:#include<stdio.h> #include<math.h> int main() …… 题解列表 2022年02月23日 0 点赞 0 评论 871 浏览 评分:0.0 Hifipsysta-1112-C语言考试练习题_一元二次方程(C++代码)求根公式法 ```cpp#include#includeusingnamespacestd;intmain(){doublea,b,c,result;cin>>a>>b>>c;doubledelta=pow(b,2)-4*a*c;doublesqrt_delta;if(delta>0){sqrt_delta=sq 题解列表 2022年02月04日 0 点赞 0 评论 635 浏览 评分:0.0 1112: C语言考试练习题_一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin >> a >> b…… 题解列表 2021年12月17日 0 点赞 0 评论 679 浏览 评分:0.0 « 12345678910 »
编写题解 1112: C语言考试练习题_一元二次方程(哈哈哈,笨比写法) 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())q=b*b-4*a*cm=(-b+pow(q,0.5))/2n=(-b-pow(q,0.5))/2if q>0…… 题解列表 2022年12月17日 0 点赞 0 评论 603 浏览 评分:0.0
常规思路——一元二次方程求解——C语言 摘要:解题思路:知道数学解一元二次方程的公式即可;引用sqrt函数进行开方。注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ double…… 题解列表 2022年12月12日 0 点赞 0 评论 507 浏览 评分:0.0
1112-一元二次方程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int a,b,c; cin >>a …… 题解列表 2022年10月06日 0 点赞 0 评论 514 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程 解题思路:注意事项:参考代码:a,b,c=map(int,input().split())deta=(b**2-4*a*c)**(1/2)x1=(-b+deta)/(2*a)x2=(-b-deta)/(2*a)print("%.2f%.2f"%(x1,x2)) 题解列表 2022年06月01日 0 点赞 0 评论 503 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",…… 题解列表 2022年03月09日 0 点赞 0 评论 622 浏览 评分:0.0
C语言考试练习题_一元二次方程 摘要:```cpp #include using namespace std; int main() { double a,b,c,s,x1,x2; cin>>a>>b>>…… 题解列表 2022年03月05日 0 点赞 0 评论 441 浏览 评分:0.0
题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:1.需要引用<math.h>库2.输出的两个值都是小数,要用double参考代码:#include<stdio.h> #include<math.h> int main() …… 题解列表 2022年02月23日 0 点赞 0 评论 871 浏览 评分:0.0
Hifipsysta-1112-C语言考试练习题_一元二次方程(C++代码)求根公式法 ```cpp#include#includeusingnamespacestd;intmain(){doublea,b,c,result;cin>>a>>b>>c;doubledelta=pow(b,2)-4*a*c;doublesqrt_delta;if(delta>0){sqrt_delta=sq 题解列表 2022年02月04日 0 点赞 0 评论 635 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin >> a >> b…… 题解列表 2021年12月17日 0 点赞 0 评论 679 浏览 评分:0.0