#include<cctype>#include<cstdio>#include<cstring>#include<algorithm>#define N 100005#define F inlineusingnamespacestd;
struct tree{ int l,r,s0,s1,f; }t[N<<
线段树洛谷P3870 洛谷P2846 BZOJ1230线段树不解释。代码:#include&lt;cctype&gt;#include&lt;cstdio&gt;#include&lt;cstring&gt;#include&lt;algorithm&gt;#define N 100005#define F inlineusing namespace std;...