11 2015 档案
摘要:#include#include#includeint map1[30][30],degree[30],p[30];int tuopu(int n){ int i,j,k,b[30],x=0,flog=1; for(i=1; i1)//检查入度为0的点有几个 { ...
阅读全文
摘要:for(i=0; i<m; i++) { int x,y,son1,son2; scanf("%d %d",&x,&y); son1=x; son2=y; while(a[x]!=x) x=a[x];...
阅读全文
摘要:#include #include #include #include #include #include#includeusing namespace std;char s[100000];int flog=0;struct tree{ char a; struct tree *lef...
阅读全文
摘要:不修正的kmp书写while(i<n) { if(j==-1||a[i]==a[j]) { i++,j++; // if(a[i]==a[j])next[i]=next[j]; ...
阅读全文

浙公网安备 33010602011771号