版本比较
题解:P10656 [ROI 2017] 学习轨迹 (Day 2)
正文
增加 4 行删除 4 行
33 行未改动3435363738383940414283 行未改动1261271281291301301311321331343 行未改动13813914014114214314214314414533 行未改动#define int long longconst int N=5e5+5;struct Point{ int x,val;}a[N],b[N],c1[N]; }a[N],b[N],c1[N];struct tree{ int maxn,id,lans,rans; tree operator+(const tree &x)const{ tree ans;83 行未改动 else ans = val2,ansl=ansr=0,ansl1=1,ansr1=m; work(0); swap(n,m),memcpy(c1,a,sizeof(a)),memcpy(a,b,sizeof(b)),memcpy(b,c1,sizeof(c1)); work(1); cout << ans << "\n" << ansl << " " << ansr << "\n" << ansl1 << " " << ansr1; cout << ans << "\n" << ansl << " " << ansr << "\n" << ansl1 << " " << ansr1; return 0;}/*极品妙妙题3 行未改动同时右端点同理然后考虑推平到和上怎么做需要维护三个变量:a[l,p]+a[p+1,r]+b[l,r]这个还需要支持区间加 天晴了雨停了我又觉得我行了
天晴了雨停了我又觉得我行了*/```