Brief description:
… lxhgww got a sequence contains n characters which are all ‘0’s or ‘1’s. We have five operations here:
- Change operations:
0 a b: change all characters into ‘0’s in[a, b]. (区间赋值1 a b: change all characters into ‘1’s in[a, b]. (区间赋值2 a b: change all ‘0’s into ‘1’s and change all ‘1’s into ‘0’s in[a, b]. (区间取反
-
Output operations:
3 a b: output the number of ‘1’s in[a, b].4 a b: output the length of the longest continuous ‘1’ string in[a , b].
Analysis:
… 略)
。。单标记。。暴力 rev。。700ms+
。。双标记。。1100ms+
External link:
…




Alca
Amber
Belleve Invis
Chensiting123
Edward_mj
Fotile96
Hlworld
Kuangbin
Liyaos
Lwins
LYPenny
Mato 完整版
Mikeni2006
Mzry
Nagatsuki
Neko13
Oneplus
Rukata
Seter
Sevenkplus
Sevenzero
Shirleycrow
Vfleaking
wangzhpp
Watashi
WJMZBMR
Wywcgs
XadillaX
Yangzhe
三途川玉子
About.me
Vijos
