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 kaitian5201314 at 2010-09-06 19:29:35 on Problem 3221
所以要先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