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 ;
}

你可能感兴趣的:(poj)