文章分类 -  基础数据结构

摘要:#include #include #include #include #include #include #include using namespace std; const int maxn=300; char s[maxn]; bool failed; vectorans; struct node { bool have_value; int v; node *l... 阅读全文
posted @ 2016-10-16 17:36 web之路 阅读(119) 评论(0) 推荐(0)
摘要:#include #include #include const int maxn=100000+10; int last,cur,next[maxn]; char s[maxn]; int main() { while(scanf("%s",s+1)==1) { int n=strlen(s+1); last=cur=0; nex... 阅读全文
posted @ 2016-10-16 16:42 web之路 阅读(123) 评论(0) 推荐(0)