上一页 1 ··· 5 6 7 8 9

2012年11月28日

HDU 2066

摘要: #include#include#include#include#include#include#include#include#define MAXN 1005#define MAXM 305#define MOD 10000#define inf 100000000#define eps 1e-9#define pi acos(-1.0)typedef long long LL;using namespace std;int T, S, D, a, b, t, u, v, w, x, n;int mat[MAXN][MAXN], dis[MAXN], lin[MAXN], ed[MAXN] 阅读全文

posted @ 2012-11-28 13:56 Sure_Yi 阅读(163) 评论(0) 推荐(0) 编辑

HDU 2112

摘要: #include#include#include#include#include#include#include#include#include#define MAXN 205#define MAXM 10005#define MOD 10000#define inf 1000000000#define eps 1e-9#define pi acos(-1.0)typedef long long LL;using namespace std;int n, mat[MAXN][MAXN], dis[MAXN], st, ed, w, idx;bool vis[MAXN];char s[35], 阅读全文

posted @ 2012-11-28 13:56 Sure_Yi 阅读(134) 评论(0) 推荐(0) 编辑

HDU 2544

摘要: #include#include#include#include#include#include#include#include#define MAXN 105#define MAXM 305#define MOD 10000#define inf 100000000#define eps 1e-9#define pi acos(-1.0)typedef long long LL;using namespace std;int n, m, c, u, v, w, mat[MAXN][MAXN], dis[MAXN];bool vis[MAXN];void Dijkstra() { memset 阅读全文

posted @ 2012-11-28 13:55 Sure_Yi 阅读(91) 评论(0) 推荐(0) 编辑

POJ 3615

摘要: #include#include#include#include#include#include#include#include#include#define MAXN 305#define MAXM 100005#define MOD 10000#define inf 10000000#define eps 1e-9#define pi acos(-1.0)#define LL long long #define I64 __int64using namespace std;int n, m, t;int mat[MAXN][MAXN];int s, e, h;void floyd() { 阅读全文

posted @ 2012-11-28 13:54 Sure_Yi 阅读(114) 评论(0) 推荐(0) 编辑

POJ 3259

摘要: #include<iostream>#include<string>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>#include<map>#define MAXN 10005#define MAXM 10005#define MOD 10000#define inf 1500000000#define eps 1e-9#define 阅读全文

posted @ 2012-11-28 13:50 Sure_Yi 阅读(131) 评论(0) 推荐(0) 编辑

POJ 2472

摘要: #include<iostream>#include<string>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>#include<map>#define MAXN 105#define MAXM 10005#define MOD 10000#define inf 1500000000#define eps 1e-9#define pi 阅读全文

posted @ 2012-11-28 13:49 Sure_Yi 阅读(108) 评论(0) 推荐(0) 编辑

POJ 1847

摘要: #include<iostream>#include<string>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>#define MAXN 105#define MAXM 305#define MOD 10000#define inf 100000000#define eps 1e-9#define pi acos(-1.0)typedef lon 阅读全文

posted @ 2012-11-28 13:38 Sure_Yi 阅读(148) 评论(0) 推荐(0) 编辑

POJ 1511

摘要: #include<iostream>#include<string>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>#include<map>#define MAXN 1000005#define MAXM 10005#define MOD 10000#define inf 1500000000#define eps 1e-9#defin 阅读全文

posted @ 2012-11-28 13:36 Sure_Yi 阅读(127) 评论(0) 推荐(0) 编辑

2012年11月27日

POJ 1651 DP 矩阵链乘

摘要: // DP#include<iostream>#include<string>#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>#include<cmath>#include<vector>#define MAXN 105#define MAXM 305#define MOD 10000#define inf 100000000#define eps 1e-9#define pi acos(-1.0)typede 阅读全文

posted @ 2012-11-27 13:08 Sure_Yi 阅读(183) 评论(0) 推荐(0) 编辑

2012年11月26日

POJ 1179 DP

摘要: // DP#include<iostream>#include<string>#include<cstdio>#include<cstdlib>#include<cstring>#include<cmath>#include<algorithm>#include<map>#include<vector>#define MAXN 55#define MAXM 55#define MOD 10000#define inf 1e15#define eps 1e-9#define LL long 阅读全文

posted @ 2012-11-26 22:57 Sure_Yi 阅读(270) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9

导航