码迷,mamicode.com
首页 > 其他好文
括号匹配
DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul...
分类:其他好文   时间:2015-08-15 16:30:35    阅读次数:111
opencv 矩阵操作
OpenCv矩阵操作有很多函数有mask,代表掩码,如果某位mask是0,那么对应的src的那一位就不计算,mask要和矩阵/ROI/的大小相等大多数函数支持ROI,如果图像ROI被设置,那么只处理ROI部分少部分函数支持COI,如果COI设置,只处理感兴趣的通道矩阵逻辑运算void cvAnd(c...
分类:其他好文   时间:2015-08-15 16:29:27    阅读次数:142
protobuf 之 MessageLite 接口摘录
class LIBPROTOBUF_EXPORT MessageLite { public: inline MessageLite() {} virtual ~MessageLite(); // Basic Operations --------------------------------...
分类:其他好文   时间:2015-08-15 16:26:27    阅读次数:1029
BZOJ 1084: [SCOI2005]最大子矩阵( dp )
最多只有2列..分开来dp1列 dp(x, k) = max( dp(x - 1, k), dp(p, k - 1) + sum(p+1~x) )2列 dp(a, b, k) = max( dp(a - 1, b, k), dp(a, b - 1, k), dp(p, b, k - 1) + sum...
分类:其他好文   时间:2015-08-15 16:23:48    阅读次数:100
"=="和equals方法的区别
.==和equal.栈内存和对内存单独把一个东西说清楚,然后再说清楚另一个,这样,它们的区别自然就出来了,混在一起说,则很难说清楚)==操作符专门用来比较两个变量的值是否相等,也就是用于比较变量所对应的内存中所存储的数值是否相同,要比较两个基本类型的数据或两个引用变量是否相等,只能用==操作符。如果...
分类:其他好文   时间:2015-08-15 16:25:37    阅读次数:92
Nullable可空类型
一个Nullable类型就是基本类型加上一个"是否为null指示器"的合成类型。对于一个类型,如果既可以给他分配一个值,也可以给它分配null引用,我们就说这个类型是可空的。 可空类型会多了两个属性 1、HasValue 是否有值 2、Value 获取值 来看个DEMO,这个东西,真...
分类:其他好文   时间:2015-08-15 16:25:05    阅读次数:92
POJ3903:Stock Exchange(LIS)
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:其他好文   时间:2015-08-15 16:25:49    阅读次数:157
Redis学习(6)-Redis高级实用特性
Redis高级实用特性:1.安全性2.主从复制3.事务处理4.持久化机制5.发布订阅消息6.虚拟内存的使用安全性:设置客户端连接后进行任何其他指定前需要使用的密码警告:因为Redis速度相当快,所以一台比较好的服务器下一个外部的用户可以在一秒钟进行150k次的密码尝试,这意味着你需要指定非常非常强大...
分类:其他好文   时间:2015-08-15 16:23:27    阅读次数:148
集训的日子让我学会了什么该放弃,什么该坚持!
从2015年7月12号下午完会后,集训的日子就开始了,之前还在犹豫不绝地问自己,到底要不要留在学校,要不要选择在这里集训,要不要放弃挣钱去学习知识?最后的一个问题的答案无疑是要的。 7月10号,考完C++下来,室友们纷纷在匆忙的整理行李,收拾衣物,而我却什么也没有行动,不知道是怎么的,看着她们...
分类:其他好文   时间:2015-08-15 16:25:23    阅读次数:109
POJ 3667 Hotel (线段树)
DescriptionThe cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superio...
分类:其他好文   时间:2015-08-15 16:25:55    阅读次数:168
hdu 4715 Difference Between Primes (二分查找)
Problem DescriptionAll you know Goldbach conjecture.That is to say, Every even integer greater than 2 can be expressed as the sum of two primes. Today...
分类:其他好文   时间:2015-08-15 16:25:19    阅读次数:99
最大子矩阵和
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
分类:其他好文   时间:2015-08-15 16:24:37    阅读次数:89
HDU 1709 The Balance
DescriptionNow you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achievable. So you shoul...
分类:其他好文   时间:2015-08-15 16:22:41    阅读次数:147
思考一下提高转码的速度
ffmpeg -i file.flv -vcodec copy -acodec copy b.mp4据说复制视频流是好办法,需要测试一下,是不是以后可以直接生成MP4呢?http://tieba.baidu.com/p/3119754818https://www.linuxyw.com/326.ht...
分类:其他好文   时间:2015-08-15 16:22:09    阅读次数:78
hdu 4273 2012长春赛区网络赛 三维凸包中心到最近面距离 ***
新模板 1 /* 2 HDU 4273 Rescue 3 给一个三维凸包,求重心到表面的最短距离 4 模板题:三维凸包+多边形重心+点面距离 5 */ 6 7 #include 8 #include 9 #include 10 #include 11 #include 12 us...
分类:其他好文   时间:2015-08-15 16:23:48    阅读次数:133
POJ 2250(最长公共子序列 变形)
DescriptionIn a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, an...
分类:其他好文   时间:2015-08-15 16:21:54    阅读次数:133
UVA 624 (0 1背包 + 打印路径)
#include#include#include#include#include#define N 1010using namespace std;int dp[N], path[N][N], w[N];int main(){ int v, n; while(~scanf("%d", &...
分类:其他好文   时间:2015-08-15 16:21:22    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!