poj3030

时间:2015-06-19 15:04:39   收藏:0   阅读:164
技术分享
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n,r,e,a;
    scanf("%d",&n);
    while(n--)
    {
        scanf("%d %d %d",&r,&e,&a);
        if((e-r) > a)
            printf("advertise\n");
        else if((e-r) == a)
            printf("does not matter\n");
        else
            printf("do not advertise\n");
    }
    return 0;
}
View Code

 

原文:http://www.cnblogs.com/gabygoole/p/4588473.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!