import java.util.Scanner;
public class a加b大于c {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i = 0; i < n; i++)
{
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
if(a+b > c)
{
System.out.println("Case #"+(i+1)+": true");
}
else
{
System.out.println("Case #"+(i+1)+": false");
}
}
}
}
定义长整型,防止溢出
最新推荐文章于 2023-02-20 16:18:02 发布