当前位置:首页 > 资讯 > info6 > 正文

poj 3030 水题 Nasty Hacks

发表于: 2012-06-25   作者:ChallenChenZhiPeng   来源:转载   浏览:
摘要: #include #include usingnamespacestd; intmain(){ intn,h,m,c; cin>>n; while(n--){ scanf("%d%d%d",&h,&m,&c); intt=m-c; if(t==h) cout<<"doesnotmatter"<<<"donotadvertise"<
#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

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号