hdu多校第二场题解(>=100人)

G - Naive Operations 一开始想到了线段树,可是没仔细思考如何操做。 大概就是维护区间最小值,若是最小值小于等于0才继续往下推。node #include<bits/stdc++.h> using namespace std; const int maxn=1e5+5; int b[maxn]; struct node { int mi,lazy,sum; nod
相关文章
相关标签/搜索