def aa(l,r,c): if r-l==1: return 0 if c==0: d=[0,0] for i in range(l,r): d[a[i]&1]+=1 if min(d): return 1 return 0 m=l;d=1<