Advertisement

C语言一元二次方程实验

阅读量:

C语言实验——一元二次方程Ⅰ

Time Limit: 1000MS Memory Limit: 65536KB

Problem Description

求解一元二次方程ax²+bx+c=0的根,并确保该方程存在实数解。

Input

a、b、c这三个参数的具体数值。

算法性能提升验证

设有两个根X₁与X₂,且满足X₁不小于X₂。最终结果需保留至小数点后两位。

Example Input

复制代码

Example Output

复制代码

Hint

作者信息标注规范

ZJGSU

SDUTACM运维技术中心

Thu Jan 04 2018 20:25:43 GMT+0800 (中国标准时间)
Copyright © 2013-2017 SDUTACM Team. All Rights Reserved.

#include <stdio.h>

#include <math.h>
void f(int a , int b, int c);
int m

全部评论 (0)

还没有任何评论哟~