struct seg
{
double l, r, h;
int flag;
seg() {}
seg(double a,double b,double c,int d) : l(a), r(b), h(c), flag(d) {}
bool operator < (const seg &cmp) const
{
return h < cmp.h;
}
}ss[maxn];
struct seg
{
double l, r, h;
int flag;
seg() {}
seg(double a,double b,double c,int d) : l(a), r(b), h(c), flag(d) {}
bool operator < (const seg &cmp) const
{
return h < cmp.h;
}
}ss[maxn];
转载于:https://www.cnblogs.com/member-re/p/10124303.html