HOJ 2453 Nasty Hacks

来源:互联网 发布:乐山seo外包公司 编辑:程序博客网 时间:2024/05/16 08:15

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;}


 

原创粉丝点击