- 博客(3)
- 收藏
- 关注
原创 uva536
#include #include #include using namespace std; void compute(string pre,string in) { if(pre.length()>1) { int pos=in.find(pre[0]); compute(pre.substr(1,pos),in.substr(0,pos)
2014-10-31 14:32:01 390
原创 uva122
#include #include #include #include using namespace std; struct node{ string num; string str; }tree[1000]; mapmymap; int cnt; string first; bool cmp(node a,node b){ if(a.str.length()==
2014-10-31 13:07:31 349
原创 hdu1711
#include #include using namespace std;int a[1000010];int b[10010];int next[10010];int n,m;void getnext(){ int i=0; int j=-1; next[0]=-1; while(i<m-1) { if(j==-1||b[i]==b[j]) { i++; j++; next[i]=j; } e
2014-10-30 00:18:46 297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人