17 人解决,24 人已尝试。
18 份提交通过,共有 58 份提交。
5.2 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
The board consists of a row of n squares, initially empty. Players take turns selecting an
empty square and writing either an S or an O in it. The player who first succeeds in
completing SOS in consecutive squares wins the game. If the whole board gets filled up
without an SOS appearing consecutively anywhere, the game is a draw.
Input has many tests,each test has a number n(1<=n<=10000),which is the squares.
Output “First Win”,if the first win the game.
if the second win the game,output “Second Win”.
otherwise output “Draw”
7
First Win
17 人解决,24 人已尝试。
18 份提交通过,共有 58 份提交。
5.2 EMB 奖励。