现在的位置: 首页 > 综合 > 正文

poj 3030 水题 Nasty Hacks

2013年12月05日 ⁄ 综合 ⁄ 共 256字 ⁄ 字号 评论关闭
#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;
}

抱歉!评论已关闭.