首页 > A-B≠C
头像 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 展开全文

等你来战

查看全部