poj3030

来源:互联网 发布:金山云微盘分析软件 编辑:程序博客网 时间:2024/06/03 14:58

题目大意:

输入r,e,c

e-c>r则输出advertise

e-c==r则输出does not matter

e-c<r则输出do not advertise

非常的水,没啥感想

#include<iostream>  #include<Cstdio>using namespace std; int main()  {  int r, e, c, size;scanf("%d", &size);while(size--){scanf("%d%d%d", &r, &e, &c);if(e- c > r)cout << "advertise" << endl;else if(e - c == r)cout << "does not matter" << endl;elsecout << "do not advertise" << endl;}} 

0 0