山东济南彤昌机械科技有限公司 山东济南江鹏工贸游有限公司

【暑假】[深入动态规划]UVa 10618 The Bookcase

摘要: UVa 12099 The Bookcase题目: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=42067思路:将n本书分配到三层,使得形成的书架w*h最小 提前将书籍按照高度排序,因为无论第一本书(最高的书)无论放在那一层... 阅读全文
posted @ 2015-08-19 18:13 hahalidaxin 阅读(249) 评论(0) 推荐(0)

【暑假】[深入动态规划]UVa 10618 Fun Game

摘要: UVa 10618 Fun Game题目: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=36035思路:一圈人围坐,给出小球的传递序列,求解最少有多少个人。 问题简单化:如果有一排人,单向传递,给出序列求解最少多少人。那么问... 阅读全文
posted @ 2015-08-19 12:43 hahalidaxin 阅读(356) 评论(0) 推荐(0)

【暑假】[深入动态规划]UVa 10618 Fixing the Great Wall

摘要: UVa 10618Fixing the Great Wall题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=36139思路:数轴上有n个点需要修复,每个点有信息c,x,d 表示位于x且在t时修缮的费用是c+d*t,找一个修... 阅读全文
posted @ 2015-08-18 22:58 hahalidaxin 阅读(267) 评论(0) 推荐(0)

【暑假】[深入动态规划]UVa 1627 Team them up!

摘要: UVa 1627Team them up!题目:Team them up!Time Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionYour task is to divide a n... 阅读全文
posted @ 2015-08-18 19:35 hahalidaxin 阅读(257) 评论(0) 推荐(0)

【暑假】[深入动态规划]UVa 10618 Tango Tango Insurrection

摘要: UVa 10618Tango Tango Insurrection题目:Problem A: Tango Tango InsurrectionYou are attempting to learn to play a simple arcade dancing game. The game has ... 阅读全文
posted @ 2015-08-18 11:55 hahalidaxin 阅读(370) 评论(0) 推荐(0)

【暑假】[深入动态规划]UVa 1412 Fund Management

摘要: UVa 1412Fund Management题目:UVA - 1412Fund ManagementTime Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionFrank is a p... 阅读全文
posted @ 2015-08-17 11:32 hahalidaxin 阅读(418) 评论(0) 推荐(0)

【暑假】[实用数据结构]UVAlive 4670 Dominating Patterns

摘要: UVAlive 4670 Dominating Patterns题目:Dominating PatternsTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %lluSubmit Status DescriptionThe ... 阅读全文
posted @ 2015-08-12 21:25 hahalidaxin 阅读(214) 评论(0) 推荐(0)

【暑假】[实用数据结构]UVAlive 3026 Period

摘要: UVAlive 3026 Period题目:PeriodTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %lluSubmit Status DescriptionFor each prefix of a given str... 阅读全文
posted @ 2015-08-11 20:59 hahalidaxin 阅读(215) 评论(0) 推荐(0)

【暑假】[实用数据结构]UVAlive 3942 Remember the Word

摘要: UVAlive 3942 Remember the Word题目:Remember the WordTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %lluSubmit Status DescriptionNeal is ... 阅读全文
posted @ 2015-08-11 20:29 hahalidaxin 阅读(257) 评论(0) 推荐(0)

【暑假】[实用数据结构] AC自动机

摘要: Aho-Corasick自动机算法: AC自动机用于解决文本一个而模板有多个的问题。 AC自动机可以成功将多模板匹配,匹配意味着算法可以找到每一个模板在文本中出现的位置。 KMP中对模板构造失配边,多模板每条模板独立构造失配边太过麻烦。 算法利用Trie+KMP中的失配边。insert(模板)构造... 阅读全文
posted @ 2015-08-10 20:48 hahalidaxin 阅读(187) 评论(0) 推荐(0)