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

似乎是数据少了,我这个检验代码得到TLE

Posted by RoBa at 2008-09-27 21:14:26
In Reply To:1005有非法数据,请检查 Posted by:tekkie at 2008-09-27 19:04:39
#include <cstdio>
#include <string>
#include <vector>
using namespace std;

int main() {
	int T, n, m, S, t1, t2;
	scanf("%d",&T);
	while (T--) {
		if (scanf("%d %d %d",&n,&m,&S) != 3) while (1);
		while (m--) {
			if (scanf("%d %d",&t1,&t2) != 2) while (1);
		}
	}
	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