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

why?why?why?

Posted by 1209XIE at 2012-10-14 11:05:07 on Problem 3030
#include<stdio.h>
int main()
{
    int n,j,i,iarr[3];
    scanf("%d",&n);
    for(j=0;j<n;j++)
    {
        for(i=0;i<3;i++)
        scanf("%d",&iarr[i]);
        if(iarr[1]-iarr[2]==iarr[0])
        printf("does not matter");
        else if(iarr[1]-iarr[2]<iarr[0])
        printf("does not advertise");
        else if(iarr[1]-iarr[2]>iarr[0])
        printf("advertise");
    }
    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