上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 基础结构体 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 阅读全文
posted @ 2017-02-19 16:54 basasuya 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 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) 阅读全文
posted @ 2017-02-18 16:59 basasuya 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 新年第一篇,又花了一早上,真是蠢啊! 二分+网络流 之前对于讨论哪些人是朋友的时候复杂度过高 直接n3的暴力虽然看起来复杂度高,其实并不是每次都成立 #include<bits/stdc++.h> using namespace std; const int N = 205; const int I 阅读全文
posted @ 2017-01-11 14:33 basasuya 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 首先这是个费用流,用log转乘法为加法,外加模板的修改,需加eps 下面是废话,最好别看 闲来无事(鼓起勇气)写这篇博客 这是个自带影像回访的题目 青岛的炼铜之旅,大学的acm生涯就这样结束了。或许还会刷刷题目,但是也再也没有证明自己的机会和心气。 回想大学的这段旅程。 大一下接触acm,为进集训队 阅读全文
posted @ 2016-12-28 22:30 basasuya 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 这个代码讲道理 不是我写的 我是了别人的代码 然后自己借鉴了后重写的 并修了3,4个bug,并且剪短了很多 可以rmdir该目录以及所有下属,可以cd多层目录 三个问题, 1.一个目录文件只删中间一部分,我的写发是这时length不变的,最好修改为read遍历对于free的文件直接跳过(想了想这也不 阅读全文
posted @ 2016-12-05 12:01 basasuya 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 12.16更新 做了关于左递归和回溯的消除 并且还做了first,follow,select集的提取 总之写的很烦,而且只验证了一个样例 先做了3 就是一个递归 流坑給4 明天或者后天写 #include<bits/stdc++.h> using namespace std; char s[105] 阅读全文
posted @ 2016-12-02 19:35 basasuya 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 12.14修改: 实验一换一种更靠谱的dfa并且修改了空格问题 先贴实验一二,这两天写的吐血 实验一: #include<bits/stdc++.h> using namespace std; typedef long long ll; #define sz(X) ((int)X.size()) / 阅读全文
posted @ 2016-12-01 21:45 basasuya 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 今天热身考到FFT,完全忘光了,模板敲错了。。。 晚上温习下以前的题目 这题就是从最大值每次分割现在的区间,这样递归的区间最大值会更小,对于每种最大值都是卷积做 #include<bits/stdc++.h> using namespace std; typedef long long ll; co 阅读全文
posted @ 2016-11-12 19:52 basasuya 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 一眼的KM,但是建图的时候记得不用的点设为0,点少的一边补齐,这个非常重要,因为KM追求完全匹配,如果无法完全匹配会非常慢 #include<bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f #define MAXN 105 #de 阅读全文
posted @ 2016-11-10 09:39 basasuya 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 昨天吐槽还没A,今天就A了 有个变量开成了全局变量,应该携程局部变量 对于中间的solve我也不懂为什么是nlog2n,我不看题解也不会做 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int INF 阅读全文
posted @ 2016-11-07 17:42 basasuya 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页