[恢]hdu 2317

2011-12-29 23:07:25

地址:http://acm.hdu.edu.cn/showproblem.php?pid=2317

题意:给出不放广告的收入,放广告的收入和广告的花费,问结果。

代码:

# include <stdio.h>


int main ()
{
int n ;
int a, b, c ;
scanf ("%d", &n) ;
while (n--)
{
scanf ("%d%d%d", &a, &b, &c);
if (b-c > a) puts ("advertise") ;
else if (b-c==a) puts ("does not matter") ;
else puts ("do not advertise") ;
}
return 0 ;
}



原文地址:https://www.cnblogs.com/lzsz1212/p/2315406.html