POJ 3030 Nasty Hacks
来源:互联网 发布:php字符串转义函数 编辑:程序博客网 时间:2024/05/16 05:02
#include<stdio.h>
int main()
{
int n, a[3]={0}, i;
scanf("%d", &n);
while(n--)
{
for(i=0; i<3; i++)
{
scanf("%d", a+i);
}
if(a[0] > a[1]-a[2])
printf("do not advertise/n");
else if(a[0] < a[1]-a[2])
printf("advertise/n");
else
printf("does not matter/n");
}
return 0;
}
int main()
{
int n, a[3]={0}, i;
scanf("%d", &n);
while(n--)
{
for(i=0; i<3; i++)
{
scanf("%d", a+i);
}
if(a[0] > a[1]-a[2])
printf("do not advertise/n");
else if(a[0] < a[1]-a[2])
printf("advertise/n");
else
printf("does not matter/n");
}
return 0;
}
- POJ 3030 Nasty Hacks
- poj 3030 Nasty Hacks
- poj 3030 Nasty Hacks
- Poj 3030 Nasty Hacks
- poj 3030 Nasty Hacks
- POJ 3030 Nasty Hacks
- POJ 3030 - Nasty Hacks
- poj 3030 水题 Nasty Hacks
- POJ 3030 && HDU 2317 Nasty Hacks(水~)
- Nasty Hacks
- Nasty Hacks
- POJ 3030 Nasty Hacks(我的水题之路——比较大小)
- 2317:Nasty Hacks
- HDU 2317 Nasty Hacks
- HOJ 2453 Nasty Hacks
- HDU2317:Nasty Hacks
- hdu-2317-Nasty Hacks
- Nasty Hacks 2317
- struts实现上传下载
- 用Struts上传多个文件的方法
- 6~9
- New Photo in my Album!
- c++ 指针和字符串
- POJ 3030 Nasty Hacks
- Struts+Spring+Hibernate实现上传下载
- 第一次写
- 好久没来了
- 每日一帖:mysql 使用数组
- 系统测试基础理论
- 项目管理9大知识体系与5个具体阶段(zz)
- 从李开复的Google看管理的文化和背景
- 浅谈C++类(10)--函数对象