题意:

输入三个整数A,B,C(long long范围内),输出是否A+B>C。

trick:

测试点2包括溢出的数据,判断一下是否溢出即可。

AAAAAccepted code:

 #define HAVE_STRUCT_TIMESPEC
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
cin>>t;
for(int i=;i<=t;++i){
if(i!=)
cout<<"\n";
long long a,b,c;
cin>>a>>b>>c;
long long x=a+b;
if(a>&&b>&&x<){
cout<<"Case #"<<i<<": true";
continue;
}
else if(a<&&b<&&x>=){
cout<<"Case #"<<i<<": false";
continue;
}
long long d=a+b;
if(d>c)
cout<<"Case #"<<i<<": true";
else
cout<<"Case #"<<i<<": false";
}
return ;
}

最新文章

  1. Class.forName的使用
  2. VS2008切换设计视图卡死 停止响应
  3. 转载:jsp中jstl标签的类似 if - else 语句 的语法
  4. db2 Hidden columns
  5. atitit.js 各版本 and 新特性跟浏览器支持报告
  6. Effective STL 中文版(大全)
  7. Python单元测试——深入理解unittest (转)
  8. 李洪强iOS开发之XMPP
  9. 腾讯企业邮箱又一次隐藏了qq邮件列表的入口
  10. C#学习笔记 day_two
  11. Python PIL
  12. 纯粹的python绑定
  13. HDU 1284(钱币兑换 背包/母函数)
  14. Anaconda安装python(idea兼容)
  15. Learning WCF:A Simple Demo
  16. ug nx7.5安装方法(图文详解)
  17. java并发之如何解决线程安全问题
  18. sqlserver 2008评估期已过
  19. 如何使用 python3 将RGB 图片转换为 灰度图
  20. RHCE 共享文件系统

热门文章

  1. Oracle中的数据迁移到Mysql数据库中的方式Navicat premium工具
  2. promise学习,多看几次。含node,ES6知识
  3. VSCode配置FTP
  4. HDU2121 Ice_cream’s world II (最小树形图)
  5. 并发之CountDownLatch用法详解
  6. Linux - Shell - 在多个文件中查找关键字
  7. yii2 gii开启
  8. 【DRF版本控制】
  9. Uva 11300 Spreading the Wealth(贪心)
  10. 【Android】网络通信