poj 3030 Nasty Hacks

#include <iostream>
using namespace std;

int main()
{
    int tc, r, e, c;
    cin >> tc;
    while (tc--){
          cin >> r >> e >> c;
          if (e-c > r)
             cout << "advertise" << endl;
          else if (e-c == r)
             cout << "does not matter" << endl;
          else if (e-c < r)
             cout << "do not advertise" << endl;
    }
    
    system("pause");
} 

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