1. 程式人生 > >1011 A+B和C

1011 A+B和C

blank problem return namespace span urn lan ios cin

題目鏈接:https://pintia.cn/problem-sets/994805260223102976/problems/994805312417021952

題解:

 1 #include<iostream>
 2 using namespace std;
 3 
 4 int main(){
 5     long long T,a,b,c;
 6     cin>>T;
 7     for(int i=0;i<T;i++){
 8         cin>>a>>b>>c;
 9         if(a+b<=c) cout<<"
Case #"<<i+1<<": false"<<endl; 10 else cout<<"Case #"<<i+1<<": true"<<endl; 11 } 12 return 0; 13 }

1011 A+B和C