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

我们又检查了一边,以下是测试代码,得到Wrong Answer,您再看看数据哪里会有问题

Posted by ACM06Louty at 2008-09-27 19:18:40
In Reply To:这个数据范围是我们修改过的,而且是检查过的……正赛的时候这道题就出问题了,所以我们特意检查了,我们再去查查 Posted by:ACM06Louty at 2008-09-27 19:06:20
#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 );
for ( i = 0; i < m; i ++ ){
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