Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:呃……水题神马的都是浮云,贴代码

Posted by cz908640443 at 2013-02-15 18:56:39 on Problem 3030
In Reply To:Re:呃……水题神马的都是浮云,贴代码 Posted by:miklcct at 2011-08-03 13:41:17
#include <stdio.h>

int a, b, c, i, n;

int main(){
    scanf("%d",&n);
    for (i = 0; i < n; i++) {
        scanf("%d%d%d",&a,&c,&b);
        if (a + b - c) {
            printf(a + b > c? "do not advertise\n":"advertise\n");
        }
        else printf("does not matter\n");
    }
    return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator