03 2015 档案

摘要:vector V;int N;int a[MAXN];int x;int main () { cin >> N; REP(i,N) { cin >> x; V.push_back(make_pair(x,i)); } sort(V.begin(),V.end()); REP(i,N) a[V[... 阅读全文
posted @ 2015-03-04 18:10 闪光阳 阅读(99) 评论(0) 推荐(0)
摘要:本篇博客会持续跟新。。。。。线段树1.概念 线段树是一种完全二叉树,与区间树相似,它将一个区间划分成一些单元区间,每个单元区间分别对应着线段树中的一个叶节点。主要用于区间的动态查询问题,每次操作的复杂度为O(logn)。2.性质 如果父亲节点表示区间[a,b],那么左儿子表示的区间为[a,(a ... 阅读全文
posted @ 2015-03-04 15:01 闪光阳 阅读(223) 评论(0) 推荐(0)
摘要:C. DNA Alignmenttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya became interested in bioin... 阅读全文
posted @ 2015-03-02 18:25 闪光阳 阅读(317) 评论(0) 推荐(0)
摘要:D. A and B and Interesting Substringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA and B are... 阅读全文
posted @ 2015-03-01 09:08 闪光阳 阅读(421) 评论(0) 推荐(0)