Welcome, Guest! Sign Up RSS

Clever Space

Friday, 11.22.2024
Main » 2013 » September » 12
HDU1540
这道题真是烦
新研究的区间序
struct seg
{
  int l,r;
  bool operator <(const seg a)const
  {
    if ((a.l<=l)&&(r<=a.r)) return 0;
    if ((l<=a.l)&&(a.r<=r)) return 0;
    if (r<a.l) return 1;
    if (a.r<l) return 0;
  }
};
... Read more »
Views: 490 | Added by: dhy0077 | Date: 09.12.2013

working...
Views: 439 | Added by: dhy0077 | Date: 09.12.2013