2025-08-29 16:59:52 +0000 UTC

Alice and Bob Playing Flower Game

Code

class Solution:
    def flowerGame(self, n: int, m: int) -> int:
        return (m * n) // 2