菜鸟记录11111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,t;&nb…… 题解列表 2025年05月08日 0 点赞 0 评论 56 浏览 评分:0.0
T1028 一元二次--7行解决,简洁明了 摘要:解题思路:注意事项:# 我也是在前几个前辈的代码下,总结简化的,不要恶意对比参考代码:a,b,c=map(int,input().split())t=b**2-4*a*cx1 = -b / (2 * …… 题解列表 2025年05月05日 1 点赞 1 评论 46 浏览 评分:0.0
解方程-------------------------------------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <cmath>using namespace std;int main(){ &…… 题解列表 2025年03月17日 1 点赞 0 评论 319 浏览 评分:10.0
1028: [编程入门]自定义函数求一元二次方程 摘要:```c#include #include int main() { double a,b,c; scanf("%lf%lf%lf",&a,&b,&c); doubl…… 题解列表 2025年03月11日 0 点赞 0 评论 479 浏览 评分:0.0
Python方法求根 摘要:参考代码:from math import * a,b,c=map(int,input().split()) m=b**2-4*a*c if m>=0: n=sqrt(m) …… 题解列表 2024年12月26日 1 点赞 0 评论 354 浏览 评分:0.0
自定义函数求一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,x1,x2;cin>>a>>b>>c; …… 题解列表 2024年11月23日 2 点赞 0 评论 941 浏览 评分:10.0
初学者的写法 摘要:解题思路: 无脑if else注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a,b,c,d; …… 题解列表 2024年11月15日 1 点赞 0 评论 821 浏览 评分:9.9
一元二次方程方程求根 摘要:解题思路:应用到数学知识分情况讨论b^2-4*a*c即Delta的情况Delta大于等于0时情况较简单应用到求根公式Delta小于0时涉及到共轭复根注意事项:使用到pow();sqrt()函数参考代码…… 题解列表 2024年10月27日 3 点赞 0 评论 757 浏览 评分:9.9
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void fun(double a, double b, double c) { double…… 题解列表 2024年09月29日 0 点赞 0 评论 433 浏览 评分:0.0
自定义函数求一元二次方程-题解(C语言) 摘要:#include<stdio.h> #include<math.h> void d0(double a,double b,double c,double *x1,double *x2) { …… 题解列表 2024年09月04日 0 点赞 0 评论 457 浏览 评分:9.9