标签:count == printf scan pre include span div std
1 #include<cstdio> 2 int main(){ 3 int n, countCase = 1; 4 long long a, b, c, sum; 5 scanf("%d", &n); 6 while(n--){ 7 bool flag; 8 scanf("%lld%lld%lld", &a, &b, &c); 9 sum = a + b; 10 if(a < 0 && b < 0 && sum >= 0) 11 flag = false; 12 else if(a > 0 && b > 0 && sum < 0) 13 flag = true; 14 else if(sum > c) 15 flag = true; 16 else 17 flag = false; 18 if(flag == true) 19 printf("Case #%d: true\n",countCase++); 20 else 21 printf("Case #%d: false\n",countCase++); 22 } 23 return 0; 24 }
标签:count == printf scan pre include span div std
原文地址:https://www.cnblogs.com/zjsaipplp/p/10415756.html