摘要: #include#include#include#define maxn 50010#define Lson root*2#define Rson root*2+1#define Max(a,b)(a>b?a:b)int ac[maxn];struct ndoe{//lsum表示左区间的连续,rsu... 阅读全文
posted @ 2015-08-03 17:09 _Nestling 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 此题需用C++提交,不能用G++;#include#include#includetypedef struct node{ int sum; node *next[26];}*tree,t;tree root;void Insert(char *str){ tree p=root,... 阅读全文
posted @ 2015-08-03 10:08 _Nestling 阅读(128) 评论(0) 推荐(0) 编辑