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

DFS+记忆表能过,内附一些说明……

Posted by erex at 2009-07-27 14:02:52 on Problem 1143
假如是A和B进行对弈,A先走一步,那这一步怎么能能算WINNING MOVE?
对于B,无论走哪一步,A都可以找到一条不输的路径就算。
也就是说,如果B能找到一个必胜的走法,那么此时A的就不算WINNING MOVE。

关于位运算的技巧是,把一个整数的位用来标记1到20,这样就可以用记忆化的表,不然会超时……

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