通过符号重载,使用sort函数对结构体进行排序 例子
struct Range { LL w; int l, r; bool operator<(const Range &other) const { return w < other.w; } } range[M];