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 |
这道题由于状态空间比较小...所以要先BFS一遍吧所有可行解记录在hash中,然后在直接查找就行了,O(1)的复杂度啊~~~ 刚开始就是直接的BFS,TLE了...杯具 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator