1 #include <stdio.h> 2 int main () 3 { 4 int amount; 5 scanf("%d",&amount); 6 int cnt = 1; 7 8 while (amount > 0) 9 { 10 long a; 11 long b; 12 long c; 13 scanf("%ld %ld %ld",&a,&b,&c); //此题仔细搞懂INT DOUBLE LONG LONGLONG 的各种大小输出输入方法 14 if(a + b > c) 15 { 16 printf("Case #%d: true ",cnt); 17 cnt++; 18 } 19 else 20 { 21 printf("Case #%d: false ",cnt); 22 cnt++; 23 } 24 amount--; 25 } 26 return 0 ; 27 }