摘要:
#include #include #include #include #include #include #include #include #include #include #include #include #define MAX 110000 #define LL long long using namespace std; LL n,m; LL ans; struct Tree { ... 阅读全文
posted @ 2016-09-17 20:11
2014summer8
阅读(767)
评论(0)
推荐(0)
摘要:
//大根堆procedure push(x:longint);//元素x入堆 O(log t)var tx,i:longint;begin inc(t);//堆顶top加1 a[t]:=x;//将x放入堆的最后一个节点 i:=t; while (i>1)and(a[i>>1]<a[i]) do//将 阅读全文
posted @ 2016-09-17 20:10
2014summer8
阅读(398)
评论(0)
推荐(0)
浙公网安备 33010602011771号