3 ms·
almost but this part is swrong def set(x,p): return x ^ (1 << p) should probably be def set(x,p): return x | (1 << p)
by xordoh 5y ago
almost but this part is swrong
def set(x,p): return x ^ (1 << p)
should probably be
def set(x,p): return x | (1 << p)