摘要:
最短路View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;#define maxf 105#define maxn 505#define inf 0x3f3f3f3fint firenum, n;int fire[maxf];int map[maxn][maxn];int firedist[maxn];void input(){ scanf("%d%d", &firen 阅读全文
posted @ 2011-10-03 13:58
undefined2024
阅读(257)
评论(0)
推荐(0)
摘要:
打表View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;#define maxn 35005int n;int pre[maxn], next[maxn];void del(int a){ pre[next[a]] = pre[a]; next[pre[a]] = next[a];}void init(){ n = 35000; for (int i = 0; i < n; i++) { p 阅读全文
posted @ 2011-10-03 13:24
undefined2024
阅读(196)
评论(0)
推荐(0)