[洛谷]P2880 [USACO07JAN]平衡的阵容Balanced Lineup (#树状数组)
题目背景题目描述:每天,农夫John的N(1#include#includeusingnamespacestd;intn,m,a[50001],maxn[50001],minx[50001],s;inlineintlowbit(intx){returnx&-x;}inlinevoidupdate(intx,intk)//区间[x,n]修改最值{while(x=l)//while(r>0){mx=m