POJ 3030 Nasty Hacks (模拟题)

题目:http://poj.org/problem?id=3030

思路:模拟题

#include <iostream>

using namespace std;



int main()
{
    int n;
    cin >> n;
    int r,e,c;
    for(int i=0;i<n;i++)
    {
        cin >> r >> e >> c;
        if(r<e-c) cout << "advertise" <<endl;
        else if(r==e-c) cout << "does not matter" << endl;
        else  cout << "do not advertise" << endl;
    }
}

 

posted @ 2013-01-16 14:18  Daniel Qiu  阅读(123)  评论(0编辑  收藏  举报