51nod 1672 区间交

zcmimi at 
查看原题'" class='mdui-btn mdui-btn-raised'>点击加载点击跳转先按左端点排序,每次添加右端点的时候如果堆中个数等于$k$就统计答案,然后弹出最小的右端点……