A+B>C

 1 #include <iostream>
 2 #include <math.h>
 3 using namespace std;
 4 int main()
 5 {
 6     int count = 1;
 7     int k;
 8     long long A,B,C;
 9     cin >>k;
10     for(int i=0;i<k;i++)
11     {
12         cin >>A>>B>>C;
13         if(A+B > C)
14         {
15             cout <<"Case #"<<count<<": "<<"true"<<endl;
16             count ++;
17         }
18         else
19         {
20             cout <<"Case #"<<count<<": "<<"false"<<endl;
21             count ++;
22         }
23     }
24     return 0;
25 }

 

posted @ 2019-09-08 21:58  起风了_Zoe  阅读(272)  评论(0编辑  收藏  举报