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 |
????为什么是输入格式的问题?? 求解释》》》》In Reply To:Re:哪位高手帮忙看看代码,自己在下面能通过,为什么总是wa呢 ,我用的是宽度优先搜索 Posted by:AC22MU7 at 2008-12-05 15:36:08 > main函数中改为: > while (cin>>ca>>cb>>N) > bfs(N); > 即可AC. 用while(scanf("%d%d%d",&X,&Y,&N)!=EOF) —————— WA 用while(scanf("%d%d%d",&X,&Y,&N)==3) —————— WA 用while(cin>>X>>Y>>N) —————————— AC 求解释》》》》 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator