题目477 A+B Problem III

来源:互联网 发布:c语言bool类型 编辑:程序博客网 时间:2024/06/10 00:54

     已AC代码:

 #include<cstdio>using namespace std;int main(){    int t;    scanf("%d", &t);    while(t--)    {        double a, b, c;        scanf("%lf%lf%lf", &a, &b, &c);        if(a+b-c>=-0.0001 && a+b-c<=0.0001)            printf("Yes\n");        else            printf("No\n");    }}        


0 0
原创粉丝点击