首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
A-B≠C
9条解析
开通博客写题解
Ldh1315109
发表于 2025-11-07 16:40:31
def solve(testcase): eps = 1e-8 a, b, c = map(float, input().split()) print("YES" if abs(a - b - c) < eps else "NO"
展开全文
星汐ya
发表于 2026-01-28 10:37:25
//先乘去掉小数点再计算 #include<bits/stdc++.h> using namespace std; #define ll long long int main() { double a,b,c; scanf("%lf %lf %lf",
展开全文
肖猪
发表于 2026-01-28 14:33:39
#include<bits/stdc++.h> using namespace std; int main() { double a, b, c; cin >> a >> b >> c; const double EPS = 1e-6; if
展开全文
Herman欧y
发表于 2025-12-16 09:03:37
#include <iostream> #include <cmath> // 使用 fabs 函数 using namespace std; int main() { double a, b, c; cin >> a >> b &
展开全文
Mariolne
发表于 2026-01-15 20:21:41
#include <iostream> using namespace std; const double EPS = 1e-9; //小数点位数太多,直接进行判断会死 int main() { double a,b,c; cin>>a>>b>
展开全文
吉他声声木屋中
发表于 2026-01-24 18:43:05
#include<bits/stdc++.h> using namespace std; int main(){ float a,b,c; cin>>a>>b>>c; const double eps=1e-7; if(
展开全文
自由的风0450
发表于 2025-11-14 20:26:05
#include <iostream> using namespace std; const double EPS=1e-9; int main(){ double a,b,c; cin>>a>>b>>c; if(abs(a-b
展开全文
While1729
发表于 2025-11-22 22:56:02
#include <stdio.h> int main() { double a, b,c; while (scanf("%lf %lf %lf", &a, &b,&c) != EOF) { // 注意 while 处理多个
展开全文
Oworl
发表于 2025-12-13 20:42:06
#这题涉及到"精确计算" #浮点数在计算机中是一个近似值,如80.845在计算机中可能是80.84499999999999,所以在计算时会产生误差 #因此,我们需要导入一些模块来实现精确计算 from decimal import Decimal,getcontext getc
展开全文
查看本题
查看本题讨论
等你来战
查看全部
牛客小白月赛128
报名截止时间:2026-01-30 21:00
牛客周赛 Round 129
报名截止时间:2026-02-01 21:00
2026牛客寒假算法基础集训营1
报名截止时间:2026-02-03 18:00
2026牛客寒假算法基础集训营2
报名截止时间:2026-02-05 18:00
2026牛客寒假算法基础集训营3
报名截止时间:2026-02-07 18:00
牛客周赛 Round 130
报名截止时间:2026-02-08 21:00
2026牛客寒假算法基础集训营4
报名截止时间:2026-02-09 18:00
2026牛客寒假算法基础集训营5
报名截止时间:2026-02-11 18:00
2026牛客寒假算法基础集训营6
报名截止时间:2026-02-13 18:00
牛客2026年情人节比赛
报名截止时间:2026-02-14 21:00
牛客周赛 Round 131
报名截止时间:2026-02-15 21:00
牛客2026年除夕娱乐赛
报名截止时间:2026-02-17 01:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题