Math
3021. Alice and Bob Playing Flower Game
Alice picks x flowers on the left (1..n), Bob picks y on the right (1..m). Players alternate taking one flower each, Alice first; whoever takes the last one wins. Count the pairs (x, y) for which…
Loading…