注意longlong
#include<cstdio> using namespace std; typedef long long ll; int main() { int n; ll a,b,c; freopen("1011.txt","r",stdin); scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%lld %lld %lld",&a,&b,&c); if(a+b>c) printf("Case #%d: true\n",i); else printf("Case #%d: false\n",i); } return 0; }