1011 A+B 和 C
#include"iostream" using namespace std; typedef long long LL; int main() { LL a,b,c; int n; cin>>n; for(int i =1; i <=n; ++i) { printf("Case #%d: ",i); cin>>a>>b>>c; if(a+b > c) cout<<"true\n"; else cout<<"false\n"; } return 0; }
#include"iostream" using namespace std; typedef long long LL; int main() { LL a,b,c; int n; cin>>n; for(int i =1; i <=n; ++i) { printf("Case #%d: ",i); cin>>a>>b>>c; if(a+b > c) cout<<"true\n"; else cout<<"false\n"; } return 0; }