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:Player 1 on first team, then player 2 on second team and so on. You need DP to solve this problem. Ask if you want more hint.

Posted by 785045613 at 2012-01-12 15:58:12 on Problem 2068
In Reply To:Player 1 on first team, then player 2 on second team and so on. You need DP to solve this problem. Ask if you want more hint. Posted by:michael at 2007-01-07 09:39:30
//博弈DP 
//双人nim,谁拿最后的石头谁输
//现在变成两只队伍,每个队伍有n个队员,两个队轮流操作,每个队员能拿的最大个数是不同的,至少是拿一个
//给定一个局面求是必胜还是必败,我们可以用一个dp数组将当前状态是必胜还是必败记录下来 
//这其实就是一个极大极小的过程 

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