摘要: #include#include#define N 550int map[N][N];int f[N][N][5],h[N][5];int pre[N];int find(int n) {if(n!=pre[n])pre[n]=find(pre[n]);return pre[n];}int main... 阅读全文
posted @ 2013-11-10 17:18 HYDhyd 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#define N 200#define inf 999999999double map[N][N];int visit[N],next[N];int main() {int n,m,i,j,k,cnt;double a[N],b[N],dis,min... 阅读全文
posted @ 2013-11-10 15:54 HYDhyd 阅读(75) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 40#define inf 999999999mapmymap;double ma[N][100];int main() {int t,n,m,i,j,k,f1,f2,coun... 阅读全文
posted @ 2013-11-10 15:39 HYDhyd 阅读(109) 评论(0) 推荐(0) 编辑