自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 问答 (2)
  • 收藏
  • 关注

原创 洛谷 P3224 [HNOI2012]永无乡

#include #define N 100005 using namespace std; int n,m,q; int a[N],pre[N]; int rt[N],lc[N],rc[N],sz[N]; int find(int x) { return x==pre[x] ? x : find(pre[x]); } void up(int u) { sz[u]=sz[lc[u]]+sz[r

2018-02-28 20:17:22 284 1

转载 http://www.acyume.com/archives/1011

.

2018-02-27 20:56:38 2841

原创 非旋treap

#include #define N 100005 using namespace std; int rt,val[N],lch[N],rch[N],pro[N],sz[N],cnt; int rnd() { static int sd=4234; return sd*=3423; } int node(int v) { val[++cnt]=v; pro[cnt]=rnd(); sz[

2018-02-25 10:27:36 221

原创 无向连通图的割点和桥

割点 #include #define N 100005 using namespace std; int n,cnt; int hd[N],nxt[N<<1],to[N<<1],tot; int dfn[N],low[N],now; int ans[N]; void add(int a,int b) { to[++tot]=b; nxt[tot]=hd[a]; hd[a]=tot;

2018-02-25 09:03:57 233

原创 给你一个N, 求最小的M使得LCM(1,2,3...M)等于 LCM(N+1,N+2,...,M)

.

2018-02-10 19:55:33 2913 1

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除