摘要:
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) 阅读全文
摘要:
新年第一篇,又花了一早上,真是蠢啊! 二分+网络流 之前对于讨论哪些人是朋友的时候复杂度过高 直接n3的暴力虽然看起来复杂度高,其实并不是每次都成立 #include<bits/stdc++.h> using namespace std; const int N = 205; const int I 阅读全文
摘要:
今天热身考到FFT,完全忘光了,模板敲错了。。。 晚上温习下以前的题目 这题就是从最大值每次分割现在的区间,这样递归的区间最大值会更小,对于每种最大值都是卷积做 #include<bits/stdc++.h> using namespace std; typedef long long ll; co 阅读全文
摘要:
昨天吐槽还没A,今天就A了 有个变量开成了全局变量,应该携程局部变量 对于中间的solve我也不懂为什么是nlog2n,我不看题解也不会做 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int INF 阅读全文