首页 > 其他 > 详细

pat(B) 1011. A+B和C

时间:2015-08-26 14:01:03      阅读:238      评论:0      收藏:0      [点我收藏+]

代码:

#include<cstdio>
#include<iostream>
#include<cstring>
#define LL long long
using namespace std;

int main()
{
	int t;
	scanf("%d",&t);
	LL a,b,c;
	for(int i=1;i<=t;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;
}


版权声明:本文为博主原创文章,未经博主允许不得转载。

pat(B) 1011. A+B和C

原文:http://blog.csdn.net/xky1306102chenhong/article/details/48001743

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!