- 博客(9)
- 收藏
- 关注
转载 1471 - Defense Lines(二分查找)
http://blog.csdn.net/Wiking__acm/article/details/8903103After the last war devastated your country, you - as the king of the land of Ardenia - decided it was high time to improve the defense of
2018-01-29 11:16:38 277
原创 Defense Lines
题目:After the last war devastated your country, you - as the king of the land of Ardenia - decided it washigh time to improve the defense of your capital city. A part of your fortification is a
2018-01-28 22:09:32 323
原创 最长回文
最长回文 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等Input输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S 两组case之间由空行隔开(该空行不用处理) 字符串长度len Output每一行一个整数x,对应一组
2018-01-28 21:17:24 1068
原创 树形DP
题目:Another Crisis Time Limit: 3000MS 64bit IO Format: %lld & %lluA couple of years ago, a new world wide crisis started, leaving many people with economical problems. Some workers of a par
2018-01-28 20:46:07 209
原创 字典树-Hyper Prefix Setstimu:
题目:Prefix goodness of a set string is length of longest common prefix*number of strings in the set. Forexample the prefix goodness of the set {000,001,0011} is 6.You are given a set of binary string
2018-01-28 20:30:39 618
原创 反转子串
题目:给定一个只包含括号和小写字母的字符串S,例如S="a(bc(de)fg)hijk"。 其中括号表示将里面的字符串翻转。(注意括号可能嵌套)请你输出翻转之后的字符串。Input字符串S。对于50%的数据,|S| ≤ 1000 对于100%的数据, |S| ≤ 5000000Output输出反转后的字符串(不带括号)。Sample In
2018-01-28 20:19:00 889
原创 Minimum Sum LCM UVA10791
题目:LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is amultiple of all integers of that set. It is interesting to note that any positive integer can be exp
2018-01-28 20:09:09 167
原创 机器学习-三(2)决策树的图形化
3.2在Python中使用Matplotlib注解绘制树形图3.2.1 Matplotlib注解程序清单3-5 使用文本注解绘制树节点:想要理解书上的代码,我花费了好久,才看懂。不是因为算法有多复杂,而是其中涉及的matplotlib的大量函数,需要进行查阅。这里附上相关的博客和文档。http://blog.csdn.net/panda1234lee/article
2018-01-22 14:15:01 1831
原创 机器学习实战-决策树
参考:http://blog.csdn.net/rujin_shi/article/details/78776996前言决策树(Decesion Tree)是一种基本的分类算法。它可以认为是if-then规则的集合,也可以认为是定义在特征空间与类空间上的条件概率分布。其主要优点就是模型具有可读性,分类速度块。学习时,利用训练数据,根据损失函数最小化的原则建立决策树模型。旨在构建一个
2018-01-22 13:27:52 686
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人