其他分享
首页 > 其他分享> > 1011 A+B 和 C

1011 A+B 和 C

作者:互联网

题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805312417021952

题解:

#include<iostream>
using namespace std;

int main(){
    long long T,a,b,c;
    cin>>T;
    for(int i=0;i<T;i++){
        cin>>a>>b>>c;
        if(a+b<=c) cout<<"Case #"<<i+1<<": false"<<endl;
        else cout<<"Case #"<<i+1<<": true"<<endl;
    }
    return 0;
}

 

标签:std,int,题解,long,994805260223102976,main,1011
来源: https://blog.csdn.net/gzu_zb/article/details/90576221