本文共 252 字,大约阅读时间需要 1 分钟。
排序后类似stars, 用树状数组。
注意两个数组都要memset和去重
#include#include #include using namespace std;struct data{ int s, e, i; friend bool operator <(data a, data b){ if (a.e != b.e) return a.e > b.e; else return a.s
转载地址:http://alwcl.baihongyu.com/