自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 HDU3836 (求至少加几条边使其强连通分量为1)

Problem DescriptionTo prove two sets A and B are equivalent, we can first prove A is a subset of B, and then prove B is a subset of A, so finally we got that these two sets are equivalent. You are to ...

2018-06-30 19:14:57 210

原创 Tarjan算法

1.求有向图强连通分量个数    1.1vector模板#include<stdio.h>//此代码仅供参考,用于求一个图存在多少个强连通分量 #include<string.h> #include<vector> #include<algorithm> using namespace std; #define maxn 10000+5 vector...

2018-06-29 14:06:34 162

原创 HDU 1269 (Tarjan算法求有向图中强连通分量数目)

#include<bits/stdc++.h> #define maxn 10000+5 using namespace std; vector<int>mp[maxn]; int vis[maxn],dfn[maxn],low[maxn]; int n,m,cnt,sig; void init() { memset(low,0,sizeof(low)); memset(dfn,0,sizeof(dfn)); memset(vis,0,sizeof(vis)); for(i

2018-06-29 14:04:10 270

原创 字典树模板

数组模板#include&lt;bits/stdc++.h&gt; #define maxn 1&lt;&lt;20 using namespace std; int ch[maxn][26],cnt[maxn]; int id; void insert(char *str) { int rt = 0; int len = strlen(str); for...

2018-06-28 14:21:13 189

空空如也

空空如也

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

TA关注的人

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