hdu2317 Nasty Hacks
2015-10-29 21:15
274 查看
#include <stdio.h>
int main()
{
int n;
__int64 r, e, c;
scanf("%d", &n);
while(n--)
{
scanf("%I64d%I64d%I64d", &r, &e, &c);
if(e - c > r) printf("advertise\n");
else if(e - c == r) printf("does not matter\n");
else printf("do not advertise\n");
}
return 0;
}
心得:从没见过这么水的题,长了见识了= =
int main()
{
int n;
__int64 r, e, c;
scanf("%d", &n);
while(n--)
{
scanf("%I64d%I64d%I64d", &r, &e, &c);
if(e - c > r) printf("advertise\n");
else if(e - c == r) printf("does not matter\n");
else printf("do not advertise\n");
}
return 0;
}
心得:从没见过这么水的题,长了见识了= =
相关文章推荐
- 安全参透之旅第2章 Zenmap工具使用第二节
- 初始化bf518中断
- OC点语法和变量作用域
- 贴一个高精加= =纪念某道有毒的题
- 关于Mac中库文件和包含文件搜索路径
- 一道题(4)
- poj Intersection 1410 (数学几何 求线段方程)
- 第5次作业答案跟帖
- 详解哈希算法、哈希表
- 测试java连接mysql的语句
- webApplicationContext 与servletContext
- cmd常用命令
- MFC修改空间ID值
- 每天学一点flex(5):DividedBox和拖拽监听
- java基础之继承extends,以及子类实例化过程
- 4Sum
- CentOS系统下xinetd启动问题
- IOS开发笔记27-应用管理之MVC模式
- Xen的安装、编译和使用(二)
- R语言学习之包的加载和日期包的使用