4756专题

BZOJ 4756 [Usaco2017 Jan]Promotion Counting dfs序+主席树

Description The cows have once again tried to form a startup company, failing to remember from past experience t hat cows make terrible managers!The cows, conveniently numbered 1…N1…N (1≤N≤100,00