poj3030

简单题

View Code
#include <iostream>
#include
<cstdio>
#include
<cstdlib>
#include
<cstring>
using namespace std;

int main()
{
//freopen("D:\\t.txt", "r", stdin);
int t;
scanf(
"%d", &t);
while (t--)
{
int a, b, c;
scanf(
"%d%d%d", &a, &b, &c);
if (a < b - c)
printf(
"advertise\n");
else if (a == b - c)
printf(
"does not matter\n");
else
printf(
"do not advertise\n");
}
return 0;
}
posted @ 2011-03-01 10:48  金海峰  阅读(247)  评论(0编辑  收藏  举报