摘要:参考博客:http://www.wutianqi.com/?p=1890 #include <iostream>using namespace std;#define max 1<<20 //无穷大 int pre[100]; //p[i]存放路径中i前面一个点 int dis[100]; //到远
阅读全文
摘要:#include <iostream>#include <cstring> #include <stdlib.h>using namespace std;void merge(int *R, int low, int mid, int high){ //将相邻的数组合并 int *r; r = (i
阅读全文