上一页 1 ··· 3 4 5 6 7
摘要: #include #include #include #define maxn 300100 #define maxx 1010 using namespace std; char s[maxx]; struct node { int next[30]; bool w; }tree[maxn]; int tot; void add() { int l=strlen(s),... 阅读全文
posted @ 2016-05-08 08:08 岂是蓬蒿人 阅读(148) 评论(0) 推荐(0) 编辑
摘要: /* STL */ #include #include #include #include using namespace std; mapa; int main() { int n,m,i,j,k; cin>>n; for(i=1;i>s; for(j=0;j>s; if(a[s]==1) printf("YES\n");... 阅读全文
posted @ 2016-05-07 17:16 岂是蓬蒿人 阅读(137) 评论(0) 推荐(1) 编辑
摘要: #include #include using namespace std; int a[100001],tot; struct node { int l,r; int ll,rr; int sum; }tree[200001]; void build(int l,int r) { int k=++tot; tree[k].l=l; tree[k]... 阅读全文
posted @ 2016-05-07 15:18 岂是蓬蒿人 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7