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 talenth1 at 2010-11-28 20:09:46 on Problem 1753
每个节点可以转移得到的16个节点,用一个假邻接表记录(就是不用动态内存,不然更慢),然后进行一下spfa求他和全白还有全黑的最短路。。。
5616K 797MS,可以看出,内存和耗时都是比较巨大的。。。。

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