bzoj 2653 middle (主席树+二分)

原文地址:https://www.cnblogs.com/without-ACM/p/5988963.html