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 |
用fflush(stdin)就WA,换个输入方式就AC,不明所以//WA while( nTest-- ){ scanf("%d %d",&n,&m); fflush(stdin); initiSet(); for( i=0 ; i<m ; i++ ){ scanf("%c %d %d",&ch,&x,&y); fflush(stdin); query( ch , x , y ); } } //AC while( nTest-- ){ scanf("%d %d",&n,&m); initiSet(); for( i=0 ; i<m ; i++ ){ scanf("\n%c %d %d",&ch,&x,&y); query( ch , x , y ); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator