Educational Codeforces Round 159 (Rated for Div. 2)(B 二分贪心 Cgcd D二分+前缀和 E字典树)
A-BinaryImbalance有只要在01之间插入就能制造无限个0,没有0就统计01个数即可#includeusingnamespacestd;constintN=1100+10,mod=998244353;#defineintlonglongtypedeflonglongLL;typedefpairPII;constlonglonginf=1e17;usingnode=tuple;intn,