"Ray, Pass me the dishes!" Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu [Submit] [Go Back] [Status] Description After doing Ray a great favor to collect sticks for Ray, Poor Neal bec…
原题链接 Description After doing Ray a great favor to collect sticks for Ray, Poor Neal becomes very hungry. In returnfor Neal's help, Ray makes a great dinner for Neal. When it is time for dinner, Ray arranges all the dishes he makes in a single line (a…
又是一道线段树区间更新的题: #include<cstdio> #include<algorithm> #include<cstring> #define ll long long #define maxn 500005 using namespace std; ll sum[maxn]; struct tree { int l,r; int ml,mr; int pre,suf; tree *left,*right; } tr[maxn*]; int trcount;…