def aa(l,r,c): if r-l==1: return 0 if c<0: return 0 m=l;d=1<