PAT:1011. A+B和C (15) AC
#include<stdio.h>
int main()
{
int n;
long long a,b,c;
scanf("%d",&n);
for(int turn=1 ; turn<=n ; ++turn)
{
scanf("%lld%lld%lld",&a,&b,&c);
if(a+b>c)
printf("Case #%d: true\n",turn);
else
printf("Case #%d: false\n",turn);
}
return 0;
}