PAT Basic Level 1011

 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\n",cnt);
17             cnt++;
18         }
19         else
20         {
21             printf("Case #%d: false\n",cnt);
22             cnt++;
23         }
24         amount--;
25     }
26     return 0 ;
27  } 

 

posted @ 2016-10-18 23:13  Ponytai1  阅读(152)  评论(0编辑  收藏  举报