poj 3030 水题 Nasty Hacks

#include <stdio.h>
#include <iostream>
using namespace std;

int main(){
    int n,h,m,c;
    cin>>n;
    while(n--){
      scanf("%d%d%d",&h,&m,&c);
      int t=m-c;
      if(t==h)
         cout<<"does not matter"<<endl;
      else if(t<h)
         cout<<"do not advertise"<<endl;
           else
             cout<<"advertise"<<endl;
    }
    system("PAUSE");
    return 0;
}

你可能感兴趣的:(poj 3030 水题 Nasty Hacks)