线段树之四
摘要:
#include <iostream> //poj 2528 Mayor's posters#include <algorithm>using namespace std;int cmp(const void *a,const void *b){ return *(int *)a-*(int *)b;}struct segment{ int l; int r; int color; //该节点中被覆盖的元线段数 }poster[80000]; //树节点int origin[80000][2]; //原始输入数据bool flag[10000010]; //标志 阅读全文
posted @ 2011-07-17 02:00 sysu_mjc 阅读(181) 评论(0) 推荐(0)
浙公网安备 33010602011771号