随笔分类 -  折半

摘要:传送门 感想:奇奇怪怪的STL和奇奇怪怪的折半 #include<iostream> #include<cstdio> #include<cmath> #include<map> #include<queue> #include<algorithm> #include<cstring> #inclu 阅读全文
posted @ 2021-08-19 11:13 latent_Lin 阅读(25) 评论(0) 推荐(0)
摘要:当n∈【30,40】可以考虑下 复杂度大概是O(2^(n/2)) 算半个模板题吧 某位机房大佬(折半+STL) #include<bits/stdc++.h> using namespace std; long long n,m,w[101],mid,a[1<<20],b[1<<20],sum1,s 阅读全文
posted @ 2021-08-13 21:26 latent_Lin 阅读(47) 评论(0) 推荐(0)