码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
Magic necklace (项链排列)
题目链接:https://ac.nowcoder.com/acm/contest/3570/H #include <iostream> #include <algorithm> #include <string> #include <string.h> #include <vector> #incl ...
分类:其他好文   时间:2020-01-29 21:19:01    阅读次数:132
线段树基础题
一:HDU1754 #include<iostream> #include<algorithm> using namespace std; const int maxn=2e+5; int n,m,a[maxn]; struct tree{ int l,r,v; }trees[maxn<<2]; v ...
分类:其他好文   时间:2020-01-29 20:10:30    阅读次数:84
PAT:1007
#include<iostream>#include<math.h>#include<algorithm>using namespace std;//判断是否是素数bool judge(int x){ for (int j = 2; j <=sqrt(x); j++) { if (x % j == ...
分类:其他好文   时间:2020-01-29 20:00:31    阅读次数:59
线段树-模板
一:线段树介绍 引例:HDU1754 注意到父亲点和左儿子,右儿子的关系,左儿子的序号是父亲的2倍,右儿子的序号是父亲的2倍+1; 建树的过程如下,先建全部的左儿子然后回溯建右儿子和取区间最大值 #include<iostream> #include<algorithm> using namespa ...
分类:其他好文   时间:2020-01-29 19:59:22    阅读次数:69
C++中的算法头文件<algorithm>,<numeric>和<functional>
算法部分主要由头文件<algorithm>,<numeric>和<functional>组成。<algorithm>是所有STL头文件中最大的一个,它是由一大堆模版函数组成的,可以认为每个函数在很大程度上都是独立的,其中常用到的功能范围涉及到比较、交换、查找、遍历操作、复制、修改、移除、反转、排序、 ...
分类:编程语言   时间:2020-01-29 19:41:52    阅读次数:91
机器学习——局部加权回归,逻辑回归
局部加权回归( locally weighted regression ) 特征选择问题:underfitting,overfitting parametric learing algorithm:有固定数目的参数以用来数据拟合的算法; Non parametric learing algorith ...
分类:其他好文   时间:2020-01-29 18:23:37    阅读次数:97
畅通工程再续 HDU - 1875
#include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespace std; #define x first #define y second const int N=210; typede ...
分类:其他好文   时间:2020-01-29 17:52:38    阅读次数:92
还是畅通工程 HDU - 1233
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=110; int p[N],n,m,ans,num; struct node { in ...
分类:其他好文   时间:2020-01-29 16:25:13    阅读次数:95
The Unique MST POJ - 1679 次小生成树
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=510,M=10010; int ...
分类:其他好文   时间:2020-01-29 16:24:35    阅读次数:79
Arctic Network POJ - 2349
#include<cstring> #include<iostream> #include<algorithm> #include<cmath> #include<cstdio> #define x first #define y second using namespace std; typede ...
分类:Web程序   时间:2020-01-29 15:56:54    阅读次数:65
共11758条   上一页 1 ... 95 96 97 98 99 ... 1176 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!