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

真抱歉,我当时真看错题号了。刚才拿这个代码测了一下,a和b都是正的,没有0或者负数

Posted by alpc62 at 2007-09-24 22:12:40 on Problem 3241
In Reply To:Re:啊,不好意思,看错题号了 Posted by:wqb0039 at 2007-09-24 14:19:00
如果a、b有0或者负数,应该是TLE
结果status是WA,所以都是正数了

#include <stdio.h>

main()
{
	int a,b,n,k;
	for (scanf("%d%d",&n,&k);n;n--)
	{
		scanf("%d%d",&a,&b);
		if (a<=0 || b<=0)	for(;;);
	}
	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