Given interval [?] 3 integers in aa, B and c, please judge < Span class= "Mord mathit" >a+b is greater than < Span class= "katex-html" >< Span class= "Mord mathit" >c.
Input Format:
Enter the 1th line to give a positive integert (≤), is the number of test cases. Then give t Group test cases, one row per group, given < Span class= "katex-html" >< Span class= "Mord mathit" >a, b and < Span class= "Katex" >c. The integers are separated by a space.
output Format:
For each set of test cases, output in Case #X: true a row if a+B>C, otherwise the output Case #X: false , which X is the number of the test case (starting from 1).
Input Sample:
41 2 32 3 42147483647 0 21474836460 -2147483648 -2147483647
Sample output:
Case #1: falseCase #2: trueCase #3: trueCase #4: false
Analysis:
Note that the output format can
//C + +#include <iostream>using namespacestd;intMain () {intN; CIN>>N; for(intI=1; i<=n;i++){ LongA,b,c; CIN>>a>>b>>C; cout<<"Case #"<<i<<": "; if(a+b>c) cout<<"true"<<Endl; Elsecout<<"false"<<Endl; } return 0;}
pat-b -1011 A+b and C