版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiang_6/article/details/89683259
按照cpp中想了一下觉得int不大合适
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Vector;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int T = in.nextInt();
for(int test = 1; test <= T; ++test) {
long a = in.nextLong(), b = in.nextLong(), c = in.nextLong();
System.out.print("Case #" + test + ": ");
if(a + b > c) {
System.out.println("true");
}
else {
System.out.println("false");
}
}
}
}