HDU 2317 Nasty Hacks

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

题意:判断做不做广告。

胡搞题,看眼sample凑活一写就过了

View Code
#include <stdio.h>
int main()
{
    int n,r,e,c,f;
    scanf("%d",&n);
    while(n--)
    {
        scanf("%d%d%d",&r,&e,&c);
        f=r-e+c;
        if(f<0)puts("advertise");
        else if(f==0)puts("does not matter");
        else puts("do not advertise");
    }
    return 0;
}
原文地址:https://www.cnblogs.com/xiaohongmao/p/2465533.html