题意理解:
如果r>e-c,则不用做广告;
如果r=e-c, 则做不做广告无所谓;
如果r<e-c,则做广告;
解题思路:
水题;
解题代码:
#include<iostream>
using namespace std;
int main(int argc, char *argv[]){
int caseNum;
cin>>caseNum;
for(int i=0;i<caseNum;i++){
int r,e,c;
cin>>r>>e>>c;
if(r>(e-c)){
cout<<"do not advertise"<<endl;
}else if(r==e-c){
cout<<"does not matter"<<endl;
}else{
cout<<"advertise"<<endl;
}
}
return 0;
}