摘要:
##模板 void insert() //建trie树 { int p = 0; for (int i = 0; str[i]; i ++ ) { int t = str[i] - 'a'; if (!tr[p][t]) tr[p][t] = ++ idx; p = tr[p][t]; } cnt[ 阅读全文
摘要:
##abc265 Dhttps://atcoder.jp/contests/abc265/tasks/abc265_d 找到符合条件的 x y z w 使得 前缀和s sy-1-sx-1=p sz-1-sy-1=q sr-1-sz-1=r #include<bits/stdc++.h> using 阅读全文