码迷,mamicode.com
首页 >  
搜索关键字:hdu2846    ( 4个结果
HDU2846 Repository(字典树)
Repository Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 5761 Accepted Submission(s): 1911 Prob ...
分类:其他好文   时间:2017-09-03 14:54:02    阅读次数:206
hdu2846 Repository
...
分类:其他好文   时间:2016-09-19 16:10:20    阅读次数:127
hdu2846 字典树
给你一堆字符串,然后再给你几个查询,前面那些字符串中有多少个包含了这个串。所以可以把开始inset()的字符遍历一遍,同时可能出现该字符串在某个字符串中有多次出现,所以还要用flag标记,来区分不同的串。#include#include#includestruct trie{ int flag...
分类:其他好文   时间:2015-08-12 16:35:22    阅读次数:115
hdu 2846 Repository 字典树的一种变形
When you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name about something, then the system responds with the results. Now you are given a lot merchandise names in rep...
分类:其他好文   时间:2015-02-03 15:04:50    阅读次数:141
4条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!