标签:mat def ret scanf a+b stdio.h amp log [1]
1001Test//
// Created by Matthew on 2018/8/26.
//
#include <stdio.h>
#include <stdlib.h>
#define MAX(a,b,c) ((a+b)>c)?1:0
int main()
{
int num,i,j;
scanf("%d",&num);
long data[num][3];
for(i=0;i<num;i++)
scanf("%ld %ld %ld",&data[i][0],&data[i][1],&data[i][2]);
for(i=0;i<num;i++)
if(MAX(data[i][0],data[i][1],data[i][2]))
printf("Case #%d: true\n",i+1);
else
printf("Case #%d: false\n",i+1);
return 0;
}
标签:mat def ret scanf a+b stdio.h amp log [1]
原文地址:http://blog.51cto.com/10085257/2340843