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

????为什么是输入格式的问题?? 求解释》》》》

Posted by joy_w at 2010-01-14 10:29:56 on Problem 1606
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:
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