02 2017 档案
摘要:题意 给你一个1−8的排列,求一个满足条件的最长子序列 每种数字的差小于等于1,并且每种数字之内是连续的 解法 首先单纯认为用dp肯定不行的 所以应该考虑二分答案(所求长度具有二分性) 再用dp判断是否可行,这个dp很简单就是dp[N][1<<8] #include<iostream> #inclu
阅读全文
摘要:基础结构体 CvPoint int x,y CvPoint2D32f Float x,y; CvSize Int width,height CvRect int x,y,width,height CvScalar double val[4] 这里为RGBA的值 CvMat typedef struc
阅读全文
摘要:Octave Learning A(:) : puts all elements into a single vector C=[AB] :put B at A’s right C=[A,B] :put B at A’s Bottom C=A.∗B :将矩阵的相应位置进行相乘 max(A,[],1)
阅读全文

浙公网安备 33010602011771号