JOIN
 Revision History
 Select a Forum     Round Tables New Member Discussions News Discussions Algorithm Matches Marathon Matches NASA Tournament Lab TopCoder Cookbook High School Matches Sponsor Discussions Development Forums Design Forums Search My Post History  |  My Watches  |  User Settings Forums Algorithm Matches SRM 534 Slightly? Harder version of the Div2-500/Div1-250 Revision History (1 edit)
 Slightly? Harder version of the Div2-500/Div1-250 Same setup, but now the question is not who will win, since we already know.The question is now this: Knowing who will win, what is the least number of moves in which they can end the game.The player who can win will always aim for the least number of moves, while the player who can't win will always move so as to make the game last as long as possible.An example:The game board looks like this:ooo.In this game, player 2 will win, but player 1 goes first.Player 1 has two options, but he will choose --> oo.. rather than .oo.So the answer was '6' to this board.Example:oooo.Ans: 8There can be more than one way to attain the minimum game-length.------------Hah, another variation could be where the losing player assists the winning player in ending the game as soon as possible.
 Slightly? Harder version of the Div2-500/Div1-250 Same setup, but now the question is not who will win, since we already know.The question is now this: Knowing who will win, what is the least number of moves in which they can end the game.The player who can win will always aim for the least number of moves, while the player who can't win will always move so as to make the game last as long as possible.