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;
}
posted on 2015-02-14 16:10  Evence  阅读(178)  评论(0编辑  收藏  举报