The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey their hay situatio ...
分类:
其他好文 时间:
2017-08-11 23:49:20
阅读次数:
248
题目链接:http://cxsjsxmooc.openjudge.cn/2017t2summerw5/3/ 算法分析: 这个题目其实跟最长上升子序列问题类似,只是这里寻找的是最长不上升子序列的长度。 假设用maxLen[k]表示以a[k]做为“终点”的最长不下降子序列的长度,那么: 初始状态: ma ...
分类:
其他好文 时间:
2017-08-11 23:10:36
阅读次数:
188
logback 日志写入kafka队列 logback-kafka-appender Logback incompatibility Warning Due to a bug in logback-core (LOGBACK-1158), logback-kafka-appender does no ...
分类:
移动开发 时间:
2017-08-11 23:05:59
阅读次数:
971
http://acm.hdu.edu.cn/showproblem.php?pid=6097 题目大意:有个圆,圆内有两个点P,Q,已知PO=QO,求圆上一点D,使得PD+QD最小 解题思路:官方题解 找着题解一步步想的,代码中有详细的解释 AC代码: ...
分类:
其他好文 时间:
2017-08-11 22:57:20
阅读次数:
180
使用goto的优雅并避免结构的混乱 将要跳转到的语句用do{…}while(0) 包起来就可以。 reference #defien N 10 bool Execute() { // 分配资源 int *p = (int *)malloc(N * sizeof(int)); bool bOk = t ...
分类:
编程语言 时间:
2017-08-11 22:03:38
阅读次数:
224
填坑进行时……链接:http://cogs.pro/cogs/problem/problem.php?pid=1439 题意:找出两点间最短路上最大的货运量。 这题正解是网络流图论里的东西。首先我们可以想到一个图里面,边权最大的边一定是在这个图的最大生成树上面的,那么我们就先跑出最大生成树。 跑完后 ...
分类:
其他好文 时间:
2017-08-11 22:00:50
阅读次数:
172
今天发现,使用redis-py从redis中获取的数据竟然是加密的。 输出: result: b'value1'result type: <class 'bytes'> result_decoded: value1result_decoded type: <class 'str'> result_s ...
分类:
其他好文 时间:
2017-08-11 22:00:34
阅读次数:
146
P1055 ISBN号码 题目描述 每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括9位数字、1位识别码和3位分隔符,其规定格式如“x-xxx-xxxxx-x”,其中符号“-”就是分隔符(键盘上的减号),最后一位是识别码,例如0-670-82162-4就是一个标准的ISBN码。ISB ...
分类:
其他好文 时间:
2017-08-11 21:58:15
阅读次数:
211
题目链接 参考自:http://www.cnblogs.com/oyking/p/4508260.html 题意 n个人,其中有k对双胞胎.现有m间房间,每间房间有容量ci问分配房间的方案数。 分析 设dp[i][j]为已经放满了第i个房间之后,所剩下的双胞胎的对数还有j对,然后对于i+1间房,我们 ...
分类:
其他好文 时间:
2017-08-11 20:27:00
阅读次数:
126
Kaldi官方网站地址:http://www.kaldi-asr.org/ 下载Kaldi代码 git clone https://github.com/kaldi-asr/kaldi.git ...
分类:
其他好文 时间:
2017-08-11 20:26:37
阅读次数:
148