签到题 。题目地址:https://www.nowcoder.com/pat/6/problem/4077
1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int main(){ 5 int t; 6 scanf("%d",&t); 7 long long a,b,c; 8 for(int i=0;i<t;i++){ 9 scanf("%lld %lld %lld",&a,&b,&c); 10 if(a+b>c){ 11 printf("Case #%d: true\n",i+1); 12 }else{ 13 printf("Case #%d: false\n",i+1); 14 } 15 } 16 return 0; 17 }