trie
yukang_0613
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU1251
直接上代码 #include #include const int maxn=26; int idx(char r){ return r-'a'; } int ch[500000][maxn]; int v[500000]; struct trie{ int sz; trie(){ sz=1; memset(ch,0,sizeo原创 2016-07-11 11:05:56 · 378 阅读 · 0 评论 -
poj 2001 Shortest Prefixes
Shortest Prefixes Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 17719 Accepted: 7702 Description A prefix of a string is a substring starting at the beginn原创 2016-10-29 20:37:21 · 303 阅读 · 0 评论
分享