2015年9月7日

POJ-1125-Stockbroker Grapevine

摘要: 问题描述 Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers... 阅读全文

posted @ 2015-09-07 20:04 甜蜜蜜吖甜蜜蜜 阅读(85) 评论(0) 推荐(0) 编辑

SPFA算法模板

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int inf=1 q;15 void add(int u,int v,int c)16 {17 pnt[e]=v;1... 阅读全文

posted @ 2015-09-07 14:36 甜蜜蜜吖甜蜜蜜 阅读(123) 评论(0) 推荐(0) 编辑

邻接表

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn=1100; 6 const int maxm=maxn*maxn/2; 7 int n,m; 8 int head[maxn],nxt[maxn],pn... 阅读全文

posted @ 2015-09-07 10:04 甜蜜蜜吖甜蜜蜜 阅读(157) 评论(0) 推荐(0) 编辑

导航