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的点有几个 { ... 阅读全文
posted @ 2015-11-18 18:29 大领主 阅读(298) 评论(0) 推荐(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];... 阅读全文
posted @ 2015-11-15 14:52 大领主 阅读(108) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include#includeusing namespace std;char s[100000];int flog=0;struct tree{ char a; struct tree *lef... 阅读全文
posted @ 2015-11-08 21:33 大领主 阅读(314) 评论(0) 推荐(0)
摘要:不修正的kmp书写while(i<n) { if(j==-1||a[i]==a[j]) { i++,j++; // if(a[i]==a[j])next[i]=next[j]; ... 阅读全文
posted @ 2015-11-06 22:01 大领主 阅读(169) 评论(0) 推荐(0)