摘要:
#include<iostream> #include<stack> #include<queue> using namespace std; int maxsize=101; typedef struct BTNode{ int data; int lTag;//lTag=0左孩子;lTag=1前 阅读全文
摘要:
#include<iostream> #include<set> using namespace std; int book[101],e[101][101]; int result[101][101]; int avoid[101]; int essent[101]; int avo,ess; i 阅读全文
摘要:
#include<iostream> #include<string> using namespace std; int n; void LSD(string *a, int N) { int W = a[0].length(), R = 256; string *Aux = new string[ 阅读全文
摘要:
1.最小生成树 #include<iostream> using namespace std; int h[101]; int n; void swap(int a,int b){ int t; t=h[a]; h[a]=h[b]; h[b]=t; } void siftdown(int i){ i 阅读全文
摘要:
1.Floyd: 求任意两点的最短路径:i号顶点到j号顶点只经过前k个顶点的最短路径 时间复杂度O(N^3) #include<iostream> using namespace std; int e[10][10]; int inf=999999; int n,m; int main(){ cin 阅读全文