[BZOJ4756][Usaco2017 Jan]Promotion Counting(可持久化线段树)
题目描述传送门题解主席树好久没打也是各种手残啊这题也是线段树合并的裸题过几天写一发!代码#include#include#include#include#includeusingnamespacestd;#defineN100005intn,LSH,sz,dfs_clock,a[N],lsh[N];inttot,point[N],nxt[N],v[N];intin[N],out[N],root[N