版本比较
P6007 简要 Solution
正文
增加 1 行删除 1 行
81 行未改动8283848586868788899039 行未改动81 行未改动}a[MAXN<<1];int dp[MAXN],dis[MAXN],n,P;
Tree tr[MAXN*40];int tot,rt; // 由于值域较大,使用动态开点线段树,空间要开 n log n int tot,rt; // 由于值域较大,使用动态开点线段树,空间要开 n log nvoid upd(int &p,int l,int r,int t,int k){ if(!p) p=++tot; if(l==r){ tr[p].x=qmax(tr[p].x,k);39 行未改动