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:虽然AC了,但是我知道我的程序有错。In Reply To:Re:虽然AC了,但是我知道我的程序有错。 Posted by:cuitong at 2010-04-25 16:40:42 如果两条路长度一样(都是最短路),但是转弯数一个多一个少,要输出那个少的,bfs怎么做? 如果dfs出所有路径然后找出最短的然后比转弯数,肯定能做出来,但效率是不是有点低呢? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator