#include<stdio.h>
#include <math.h>
int main()
{
long long a,b,c,sum;
int n,i;
while(scanf("%d",&n)!=EOF)
{
for(i=;i<=n;i++)
{
getchar();
scanf("%lld%lld%lld",&a,&b,&c);
sum = a + b;
int ifis;
if(a>&&b>&&sum<) ifis=;
else if( a< && b< && sum>= ) ifis=;// 越界第一个值(全1)补码为 0
else if ( sum > c ) ifis=;
else if ( sum <= c ) ifis =; if( ifis == ) printf("Case #%d: false\n",i);
else printf("Case #%d: true\n",i);
} } return ;
}
相关文章
- 03-04PAT: 1010 A+B和C
- 03-04【PAT】B1011 A+B 和 C
- 03-04PAT乙级 1011. A+B和C (15)
- 03-04PAT(Basic Level) 1011 A+B 和 C
- 03-041065. A+B and C (64bit)
- 03-04PAT-乙级-1011. A+B和C (15)
- 03-041011 A+B 和 C (15 分)—PAT (Basic Level) Practice (中文)
- 03-04PAT (Basic Level) Practice || 1011 A+B 和 C (15 分)
- 03-04PAT乙级1016 部分A+B(C语言)
- 03-04PAT A1065 A+B and C (64bit)