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 tekkie at 2008-09-27 19:42:51
In Reply To:我们又检查了一边,以下是测试代码,得到Wrong Answer,您再看看数据哪里会有问题 Posted by:ACM06Louty at 2008-09-27 19:18:40
#include <iostream>
using namespace std;

main(){
int t;
scanf ( "%d", &t );

int i, n, m, u, v, s;

while ( t -- ){
scanf ( "%d %d %d", &n, &m, &s );
if ( n > 20000 || n < 0 )
while( true );
if ( m > 100000 || m < 0 )
while ( true );
if ( s >= n || s < 0 )
while ( true );
while(m --){/////////////////////////////////////////////修改处
scanf ( "%d %d", &v, &u );
if ( u >= n || u < 0 )
while ( true );
if ( v >= n || v < 0 )
while ( true );
}
}
}

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