class BitSet:
def __init__(self, n):
self.a = [False] * n
def __getitem__(self, i):
return self.a[i]
def __setitem__(self, k, v):
self.a[k] = v
def __str__(self):
s = ('01'[x] for x in self.a)
return ''.join(s)
x = BitSet(n)
class BitSet:
def __init__(self, n):
self.a = [False] * n
def __getitem__(self, i):
return self.a[i]
def __setitem__(self, k, v):
self.a[k] = v
def __str__(self):
s = ('01'[x] for x in self.a)
return ''.join(s)
x = BitSet(n)