http://acm.hit.edu.cn/hoj/problem/view?id=2453
计算收益
#include <stdio.h>
int main()
{
int n, r, e, c;
scanf("%d", &n);
while (n--)
{
scanf("%d %d %d", &r, &e, &c);
if(r == (e - c))
printf("does not matter\n");
if(r > ( e - c))
printf("do not advertise\n");
if(r < (e - c))
printf("advertise\n");
}
return 0;
}