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:怎么会是WA呢?

Posted by 18345159468 at 2012-05-08 22:06:46 on Problem 3030
In Reply To:怎么会是WA呢? Posted by:pl02206984 at 2010-01-05 19:54:56
> 怎么回事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)//这里错了应该为r==q
> 		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