Untitled

 avatar
unknown
python
a year ago
293 B
1
Indexable
def f(s, move):
    if s >= 74:
        return move % 2 == 0
    if move == 0:
        return 0
    if move ==

    games = [f(s + 1, move - 1), f(s + 2, move - 1), f(s * 3, move - 1)]

    return any(games) if (move - 1) % 2 == 0 else all(games)


print([s for s in range(1, 74) if f(s, 3)])
Leave a Comment