JOIN
Get Time
forums  Revision History
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: 8
There 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.