赞
踩
自定义结构体并重载
struct dat{ int a, b; //重载 inline bool operator < (const dat &tmp) const{ return r != tmp.r ? r < tmp.r : id < tmp.id; } }