poj 2528
摘要:
线段树,先离散化,再线段树。#include<iostream>#include<fstream>using namespace std;int x[10001],y[10001];int h[20001];int a[10000001];int v[10001];int cmp(const void *a,const void *b){ return *((int*)a)-*((int *)b);}struct e{ int l,r,color;}tree[80001];int n;void build(int l,int r,int p){ tree[p].l=l; 阅读全文
posted @ 2011-03-07 16:41 宇宙吾心 阅读(535) 评论(0) 推荐(0)