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

哦。理解错题意了。我以为是HP到0就挂了-________-谢谢Lord.Wu.继续想过

Posted by DieIng at 2008-10-13 21:22:40
In Reply To:没有hp限制啊,就是损得越少越好 Posted by:wywcgs at 2008-10-13 21:19:17
> 我感觉这道题就是个bfs,状态是当前位置和已经加速的次数。
> 加速次数的限制题目中没有给明范围,但是我感觉在每个位置最多加速一次,所以实际上最高次数也就是地图的格子数了,状态最多就是400*400 = 160000个。然后每个点有2种走法和4个方向,8种选择去扩展节点。扩展的时候记录损的hp和当前步数,对这两个指标分一个优先级去判优就好了吧

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