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 frkstyc at 2005-04-18 00:10:30 on Problem 2348
In Reply To:Re:求此题的算法!!!!!!! Posted by:tide713 at 2005-04-17 20:16:06
对于sample的局面25 7
经过几次游戏之后免不了要变成4 7,关键就是谁去面对这个局面
25/7=3>1,显然对于Stan来说,不管4 7必胜还是必败,他有完全的自由来控制谁去面对这个局面,所以Stan是必胜的。但假如不是25而是8。8/7=1,之后必然是Ollie去面对4 7,Stan的胜负完全由4 7决定了(就是它的反面)。这样就可以递归求解了。

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