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:这道题由于状态空间比较小...

Posted by 096040528 at 2011-03-17 17:11:41 on Problem 3221
In Reply To:这道题由于状态空间比较小... Posted by:kaitian5201314 at 2010-09-06 19:29:35
> 所以要先BFS一遍吧所有可行解记录在hash中,然后在直接查找就行了,O(1)的复杂度啊~~~
> 刚开始就是直接的BFS,TLE了...杯具
所谓的反向广搜。

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