随笔分类 -  ------【基本算法】

上一页 1 2 3 下一页

HDU - 2203 亲和串(Kmp)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2203 阅读全文

posted @ 2016-05-19 00:18 Jstyle 阅读(125) 评论(0) 推荐(0)

Kmp算法
摘要:举例来说,有一个字符串"BBC ABCDAB ABCDABCDABDE",我想知道,里面是否包含另一个字符串"ABCDABD"? 许多算法可以完成这个任务,Knuth-Morris-Pratt算法(简称KMP)是最常用的之一。它以三个发明者命名,起头的那个K就是著名科学家Donald Knuth。 阅读全文

posted @ 2016-05-18 22:15 Jstyle 阅读(202) 评论(0) 推荐(0)

HDU - 2087 剪花布条(Kmp)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2087 阅读全文

posted @ 2016-05-18 22:14 Jstyle 阅读(155) 评论(0) 推荐(0)

数据结构 - 二叉树的构建 (分冶)
摘要:L2-2. 树的遍历 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 时间限制 400 ms 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8000 B 阅读全文

posted @ 2016-05-18 00:03 Jstyle 阅读(528) 评论(0) 推荐(0)

UVa - 11988 Broken Keyboard(数组模拟链表)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18693 阅读全文

posted @ 2016-05-13 02:19 Jstyle 阅读(171) 评论(0) 推荐(0)

UVa - 514 Rails(栈模拟)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19641 阅读全文

posted @ 2016-05-13 02:16 Jstyle 阅读(115) 评论(0) 推荐(0)

UVa - 442 Matrix Chain Multiplication(栈模拟)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19085 阅读全文

posted @ 2016-05-13 02:15 Jstyle 阅读(109) 评论(0) 推荐(0)

UVa - 1593 Alignment of Code(自定义字符串流)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=51294 阅读全文

posted @ 2016-05-11 11:21 Jstyle 阅读(126) 评论(0) 推荐(0)

UVa - 1592 Database(STL综合,强推!)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=51293 阅读全文

posted @ 2016-05-11 01:36 Jstyle 阅读(141) 评论(0) 推荐(0)

UVa - 12096 The SetStack Computer(STL容器综合,强推!)
摘要:题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=42064 阅读全文

posted @ 2016-05-10 17:41 Jstyle 阅读(131) 评论(0) 推荐(0)

USACO - 2.2 Runaround Numbers(枚举)
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ScFaavqnaPI&S=runround 阅读全文

posted @ 2016-05-04 22:17 Jstyle 阅读(112) 评论(0) 推荐(0)

USACO - 2.2 Preface Numbering(打表枚举)
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ScFaavqnaPI&S=preface 阅读全文

posted @ 2016-05-04 22:14 Jstyle 阅读(162) 评论(0) 推荐(0)

西电OJ - 1042 另一个简单游戏
摘要:题目链接:http://acm.xidian.edu.cn/problem.php?id=1042 阅读全文

posted @ 2016-04-27 22:21 Jstyle 阅读(350) 评论(0) 推荐(0)

西电OJ - 1035 数独
摘要:题目链接:http://acm.xidian.edu.cn/problem.php?id=1035 阅读全文

posted @ 2016-04-27 22:20 Jstyle 阅读(239) 评论(0) 推荐(0)

西电网络赛 - G
摘要:#include #include #include using namespace std; /**************************************************************************************************************** 画外音(学神满早上说用贪心,然后想了一天没想出... 阅读全文

posted @ 2016-04-17 21:55 Jstyle 阅读(120) 评论(0) 推荐(0)

cf - #346 C-Tanya and Toys
摘要:#include #include using namespace std; /******************************************************************************************************************* 贪心:排序,水过去... 阅读全文

posted @ 2016-04-12 23:46 Jstyle 阅读(145) 评论(0) 推荐(0)

USACO 1.4-Arithmetic Progressions
摘要:/* ID: 1590291 TASK: ariprog LANG: C++ */ #include #include #include #include /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 00:06 Jstyle 阅读(117) 评论(0) 推荐(0)

USACO 1.3-Ski Course Design
摘要:校赛的题啊,后悔没有早早做了!!!校赛啊!!!那么丰厚的奖品呢!!!唉~省赛加油吧!!! /* ID: 15901291 TASK: skidesign LANG: C++ */ #include <iostream> #include <fstream> #include <algorithm> 阅读全文

posted @ 2016-04-05 22:53 Jstyle 阅读(113) 评论(0) 推荐(0)

USACO 1.3-Mixing Milk
摘要:/* ID: m1590291 TASK: milk LANG: C++ */ /****************************************************************************************************************** 单价升序排序 -> 按单价购买牛奶花费最小 **********... 阅读全文

posted @ 2016-04-04 23:05 Jstyle 阅读(135) 评论(0) 推荐(0)

USACO 1.3-Combination Lock
摘要:/* ID: m1590291 TASK: combo LANG: C++ */ #include #include #include /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-04 23:04 Jstyle 阅读(163) 评论(0) 推荐(0)

上一页 1 2 3 下一页

导航