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

你那样测是不对的,因为有可能是你的算法错造成RT.应该这样测.

Posted by tq at 2007-11-19 13:42:09 on Problem 1484 and last updated at 2007-11-19 13:43:05
In Reply To:请大牛给看看。 Posted by:willard at 2007-11-19 13:10:15
如下所示,没有超时,所以数据应该没有>=21的情况.

#include <stdio.h>

void main()
{
	int dev[21], c, max, i, n, m, op, tc=0, now;
	scanf("%d%d%d", &n, &m, &c);
	while(n != 0 && m != 0 && c != 0)
	{
		if(n >= 21 || n < 0) while(1);
		for(i = 0; i < n; i++)
			scanf("%d", &dev[i]);
		for(i = 0; i < m; i++)
			scanf("%d", &op);
		scanf("%d%d%d", &n, &m, &c);
	}
}


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