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

怎么会是WA呢?

Posted by pl02206984 at 2010-01-05 19:54:56 on Problem 3030
怎么回事WA呢?
#include <cstdio>
int main()
{
	int n,r,e,c,q;
	scanf("%d",&n);
	while(n--)
	{
		scanf("%d %d %d",&r,&e,&c);
		q=e-c;
		if(r<q)
		printf("advertise\n");
		else if(r>q)
		printf("do not advertise\n");
		else if(r=q)
		printf("does not matter\n");
	}
}

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