自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

寻死的兔子

窄门通向永生

  • 博客(7)
  • 收藏
  • 关注

原创 sdut 2170 The Largest SCC(山东第二届省赛)

#include #include #include #define N 1005 #define M 20005 using namespace std; struct node{ int to,next; }edge[M]; int head[N],tot; int dfn[N],low[N],stap[N],belong[N]; bool instack[N]; int indexx

2014-04-25 18:14:41 616

原创 poj 1236 Network of Schools

#include #include #include #define N 110 #define M 5010 using namespace std; struct node{ int to,next; }edge[M]; int head[N],tot; int dfn[N],low[N],stap[N],belong[N]; int in[N],out[N]; bool instac

2014-04-22 19:01:14 435

原创 poj 2762 Going from u to v or from v to u?

tarjan算法学习 https://www.byvoid.com/blog/scc-tarjan/

2014-04-22 18:59:50 607

原创 hdu 4739 Zhuge Liang's Mines

#include #include #include #include #include using namespace std; struct node{ int x,y; }a[22]; vector mine; int dp[(1<<20)+2]; int n; bool cmp(node a,node b){ if(a.x==b.x) return a.y

2014-04-21 18:30:20 563

原创 poj 3624 01背包 水

水 #include #include using namespace std; int dp[12890]={0}; int main(){ int n,m; int w,d; scanf("%d%d",&n,&m); for(int i=1;i<=n;i++){ scanf("%d%d",&w,&d); for(int j=m;j>=w;j--) if(dp[j-w]+

2014-04-16 14:28:39 394

原创 poj 1276 多重背包

一种优化方法思路来自于hdu2844 Coins

2014-04-16 14:26:03 373

原创 poj 1948 Triangular Pastures

#include #include #include #include using namespace std; bool dp[45][800][800]; int a[45]; int main(){ int n,i,j,k; int total=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&a[i]); total+=a[

2014-04-14 19:53:15 494

空空如也

空空如也

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

TA关注的人

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