rt
例如如下两种方法,都能lgAC,他们有什么区别,以及结构体重载有什么防止爆0的注意点?
struct line { int l,r,len; bool operator < (const line &a)const{ return l<a.l; } }a[100005];
struct line { int l,r,len; bool operator < (line a)const{ return l<a.l; } }a[100005];