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

Re:虽然AC了,但是我知道我的程序有错。

Posted by cuitong at 2010-04-25 16:44:14 on Problem 1101
In Reply To:Re:虽然AC了,但是我知道我的程序有错。 Posted by:cuitong at 2010-04-25 16:40:42
如果两条路长度一样(都是最短路),但是转弯数一个多一个少,要输出那个少的,bfs怎么做?
如果dfs出所有路径然后找出最短的然后比转弯数,肯定能做出来,但效率是不是有点低呢?

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