首页 > 其他
HDU 4272 LianLianKan(模拟)
LianLianKan Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3292    Accepted Submission(s): 996 Problem Description I like playing ...
分类:其他   时间:2015-08-26 12:07:51    收藏:0  评论:0  赞:0  阅读:111
动态规划 - 最长递增子序列LIS
问题:一个序列有N个数:A[1],A[2],…,A[N],求出最长非降子序列的长度 样例输入:3 1 2 6 5 4 思路: 首先把问题简单化。可以先求A[1],...A[i]的最长非降子序列,令dp[i]为以A[i]结尾的最长非降子序列。当i = 1 时, 明显是长度dp[1] = 1 ; i = 2 时,前面没有比1小的数字,故dp[2]=1 , 此时的最长非降子序列为1 ; i = 3 ...
分类:其他   时间:2015-08-26 12:07:31    收藏:0  评论:0  赞:0  阅读:101
hdu1520 Anniversary party(最大独立集 树形dp)
题目链接:点击打开链接 题目描述:现有一棵树,树上每个结点都有一个权值,问从中选一些点,这些点两两之间不直接连接,问权值最大为多少? 解题思路:很裸的一道树上最大独立集问题 树形dp即可 dp[i][0]:不选i节点 dp[i][0]+=max(dp[t][0],dp[t][1]); dp[i][1]:选i节点     dp[i][1]+=dp[t][0]; 代码: #pragma c...
分类:其他   时间:2015-08-26 12:07:21    收藏:0  评论:0  赞:0  阅读:228
HDU 4273 Rescue(三维凸包 + 重心)
Rescue Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 398    Accepted Submission(s): 296 Problem Description I work at NASA outer ...
分类:其他   时间:2015-08-26 12:07:15    收藏:0  评论:0  赞:0  阅读:357
【bzoj1968】【Ahoi2005】【COMMON 约数研究】【循环】
Description Input 只有一行一个整数 N(0 Output 只有一行输出,为整数M,即f(1)到f(N)的累加和。 Sample Input 3 Sample Output 5 题解:直接枚举每个因子,计算一下会有多少个数含有它,累加进答案即可。。 #include #include using namespace std;...
分类:其他   时间:2015-08-26 12:06:51    收藏:0  评论:0  赞:0  阅读:150
解决echart(1.4.1) 柱形图不能随着值改变颜色的问题
Echart1.4.1效果图 如果是最新的2.2.7,大家可以参照官网提供的http://echarts.baidu.com/doc/example/bar15.html  如果是1.4.1,那么color中如果写function(params),params没有向2.2.7中那么多的参数,如果还要颜色随值变化,可以这样处理 var zrColor =...
分类:其他   时间:2015-08-26 12:06:41    收藏:0  评论:0  赞:0  阅读:347
Highcharts 4.1.8发布了
Highcharts 4.1.8发布了...
分类:其他   时间:2015-08-26 12:06:21    收藏:0  评论:0  赞:0  阅读:141
Andrew Ng机器学习课程7
通过一系列的margin最优化的推导,从对偶问题出发,得到了Support vector,然后使用了kernel trick,得到了kernel support vector machine...
分类:其他   时间:2015-08-26 12:05:42    收藏:0  评论:0  赞:0  阅读:350
poj 2251 BFS
Dungeon Master Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 21312   Accepted: 8283 Description You are trapped in a 3D dungeon and need to find the quicke...
分类:其他   时间:2015-08-26 12:05:11    收藏:0  评论:0  赞:0  阅读:237
Objective-C 【动态类型检测&响应方法】
——————————————————————————————————————————— 动态类型检测 代码: #import @interface Animal : NSObject -(void)run; -(void)abc; @end @implementation Animal -(void)run {     NSLog(@"Animal run!...
分类:其他   时间:2015-08-26 12:04:21    收藏:0  评论:0  赞:0  阅读:199
ZOJ 3891 K-hash 后缀自动机
后缀自动机求不同的串,然后DP..... K-hash Time Limit: 2 Seconds      Memory Limit: 131072 KB K-hash is a simple string hash function. It encodes a string Sconsist of digit characters into a K-dimension...
分类:其他   时间:2015-08-26 12:04:11    收藏:0  评论:0  赞:0  阅读:224
LeetCode(38) Count and Say
题目The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 21 is read off as “one 2, t...
分类:其他   时间:2015-08-26 12:04:01    收藏:0  评论:0  赞:0  阅读:95
辛星浅析PSR-0规范
通常来说,我们的PSR-0规范,通常来说可以划分为如下五个部分:        (1)类名空间必须与绝对路径一致        (2)类名的首字母必须要大写        (3)除去入口文件外,其他的php文件必须只有一个类        (4)php文件必须能够实现自动加载,不能有include等的载入        (5)单一入口...
分类:其他   时间:2015-08-26 12:03:41    收藏:0  评论:0  赞:0  阅读:235
HDOJ 1028 Ignatius and the Princess III(DP)
Problem Description "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem is, given an positive integer N, we define an ...
分类:其他   时间:2015-08-26 12:02:31    收藏:0  评论:0  赞:0  阅读:275
Decoda编译方法
最近看到 有个很牛逼的lua IDE, decoda,  我就到官网下载来用了 http://unknownworlds.com/decoda/download/ 可是安装后打开, 晕,还要注册  !!! 这不是开源的吗?  我觉得把代码下载下来,自己编译个, 该不用注册了吧 !?  首先在开源中国里找到 http://www.oschina.net/p...
分类:其他   时间:2015-08-26 12:02:11    收藏:0  评论:0  赞:0  阅读:385
ABAP inner join 性能影响
?? 业务背景: ERP系统中有一个程序ZPPR0002,每次对MES系统发布ERP里的生产订单。 生产订单数据里面,包含有BOM组件,即组成成品车的1500条物料信息。 症状: 近日,业务人员反馈生产订单传输慢,一个订单要2分钟时间,一天80个订单,做完传输要几个小时。   原因: 通过SE30调试,发现程序90%的时间花费在一条inner join语句上。...
分类:其他   时间:2015-08-26 12:01:51    收藏:0  评论:0  赞:0  阅读:319
ACdream 1213 Matrix Multiplication【水题 、 找规律】
Matrix Multiplication Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) 链接:http://acdream.info/problem?pid=1213 Problem Description       Let us consider undir...
分类:其他   时间:2015-08-26 12:01:21    收藏:0  评论:0  赞:0  阅读:137
OJ 刷题---运动员分组
题目要求: 输入代码: #include using namespace std; #define team 1000//定义最多可分的组数 #define num 8//定义跑道数 int person[team];//定义该数组保存分类后每个小组的人数 int main() { int i,personNum,teamNum,remainder; cin>>...
分类:其他   时间:2015-08-26 12:01:11    收藏:0  评论:0  赞:0  阅读:200
LeetCode 215. Kth Largest Element in an Array
快排 代码: class Solution { public: int findKthLargest(vector& nums, int k) { int begin = 0, end = nums.size() - 1; while (begin < end) { int left = begin...
分类:其他   时间:2015-08-26 12:01:01    收藏:0  评论:0  赞:0  阅读:206
Co-prime
http://acm.hdu.edu.cn/showproblem.php?pid=4135 Co-prime Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2481    Accepted Submission(s): ...
分类:其他   时间:2015-08-26 12:00:42    收藏:0  评论:0  赞:0  阅读:149
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!