[UVA][殺人遊戲][zkw線段樹] 1394 - And Then There Was One
Let's play a stone removing game.
Initially, n
stones are arranged on a circle and numbered
1,..., n
clockwise (Figure 1). You are also given two numbers k
and m
. From this state, remove stones one by one
following the rules explained below, until only one rem...