2012年8月24日
摘要: 线段树+区间离散化:弄了好久,注意数组范围。 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #define MAXN 10000+100 5 6 int T, n, a[MAXN<<2], b[MAXN<<2], r[MAXN<<2], h[MAXN<<2], to[MAXN<<4]; 7 8 int cmp(const void *_p, const void *_q) 9 { 10 int *p = (int *) 阅读全文
posted @ 2012-08-24 14:08 BFP 阅读(130) 评论(0) 推荐(0) 编辑