题解 1028: [编程入门]自定义函数求一元二次方程

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

Python方法求根

摘要:参考代码:from math import * a,b,c=map(int,input().split()) m=b**2-4*a*c if m>=0:     n=sqrt(m)   ……

T1028 一元二次--7行解决,简洁明了

摘要:解题思路:注意事项:# 我也是在前几个前辈的代码下,总结简化的,不要恶意对比参考代码:a,b,c=map(int,input().split())t=b**2-4*a*cx1 = -b / (2 * ……

菜鸟记录11111111111

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,t;&nb……