| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
我得到的是RE…………………………我再研究一下In Reply To:修改了您的测试代码,得到tle,难道是编译器关系? Posted by:tekkie at 2008-09-27 19:42:51 > #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator