摘要:
#include#include#include#define tree int o,int l,int r#define lson o>1; build(lson); build(rson); }}void init(){ memset(val,0,sizeof(val[0])*(n+1)); memset(lazy,0,sizeof(lazy)); build(1,1,n); return ;}void pushup(int o){ minx[o]=min(minx[lo],minx[ro]);}void pushdown(i... 阅读全文