• + 0 comments
    from functools import reduce
    def zeroMoveNim(p):
        p=[i-1+2*(i%2) for i in p]
        return 'W' if reduce((lambda x,y:x^y),p) else 'L'