ZOJ 1610 Count the Colors
//线段树涂色问题: 对每一段区间进行染色 统计出现的颜色和该颜色的长度
//这里建图时 以线段长度1为单位节点
#include
#include
using namespace std;
const int N = 20001;
int temp;
struct Node
{
int L;
int R;
int kind;
};
Node segtree[N];
int co
原创
2012-07-12 22:15:29 ·
621 阅读 ·
0 评论