码迷,mamicode.com
首页 >  
搜索关键字:vector    ( 11651个结果
LuoguP5349 幂 分治NTT
比较神仙的推导. 求 $\sum_{n=0}^{ \infty }f(n)r^n$,其中 $f(x)$ 是一个 $m$ 次多项式,$0\leqslant r \leqslant 1$ 显然可以 $f(x)$ 每一个系数的贡献,那么就转化为: $\sum_{j=0}^{m} a_{j} \sum_{n ...
分类:其他好文   时间:2020-07-21 21:28:56    阅读次数:65
NX二次开发】Block UI 面收集器
隐藏控件 this->face_select0->SetShow(false); this->face_select0->GetProperties()->SetLogical("Show", false); 获取控件值并转为tag_t类型 1 std::vector<TaggedObject*>o ...
分类:其他好文   时间:2020-07-21 14:16:21    阅读次数:83
NX二次开发】Block UI 体收集器
获取控件选择的体 1 std::vector<TaggedObject*>objects=bodySelect0->GetSelectedObjects(); 2 tag_t tagBodyH=NULL_TAG; 3 tagBodyH=objects[0]->Tag(); ...
分类:其他好文   时间:2020-07-21 14:09:37    阅读次数:75
P1484 种树
链接:Miku 对顶堆做法 #include<iostream> #include<cstdio> #include<algorithm> #include<queue> using namespace std; priority_queue <int,vector<int>,greater<int ...
分类:其他好文   时间:2020-07-21 13:58:51    阅读次数:72
什么是并发容器的实现?
何为同步容器:可以简单地理解为通过 synchronized 来实现同步的容器,如果有 多个线程调用同步容器的方法,它们将会串行执行。比如 Vector,Hashtable, 以及 Collections.synchronizedSet,synchronizedList 等方法返回的容器。 可以通过 ...
分类:其他好文   时间:2020-07-20 10:44:00    阅读次数:61
从零开始开发标准的s57电子海图第十四篇 空间记录编码原则与记录结构(共一百篇)
空间一记录结构主要为以下几个字段: .矢量记录参数字段VRID(Vector Record Identifier field) .矢量一记录属性字段ATTV(Vector Record Attribute field) .矢量记录指针控制字段VRPC ( Vector Record Pointer ...
分类:其他好文   时间:2020-07-20 10:18:42    阅读次数:66
并查集
初始化 #include <numeric> vector<int> father(MAX); iota(father.begin() + 1, father.end(), 1); 查找根 int findFather(int u) { if (father[u] == u) return u; e ...
分类:其他好文   时间:2020-07-19 23:36:50    阅读次数:60
树算法(1)
容易忘的树基本操作 以中序与任意其他方法遍历建二叉树 // 中序与后续为例 struct node { int data; node *l, *r; }; // 中序的hash数组 int hashIn[MAX]; vector<int> in(MAX), post(MAX); node *crea ...
分类:编程语言   时间:2020-07-19 18:09:06    阅读次数:109
面试题 10.01.合并排序的数组
原题链接 题解 方式一:利用额外的空间 开一个额外的空间存放数据,最后再放回去 代码如下 class Solution { public: void merge(vector<int>& A, int m, vector<int>& B, int n) { int i = 0, j = 0; int ...
分类:编程语言   时间:2020-07-19 16:28:00    阅读次数:60
判断一个多边形的给定点是按顺时针给出还是逆时针
判断一个多边形的给定点是按顺时针给出还是逆时针 参考:判断一个多边形是顺时针还是逆时针的方法 bool judge(vector<double> x,vector<double> y,int n){ //1逆时针,0顺时针 if(n < 3) return 0.0>0; double s = y[0 ...
分类:其他好文   时间:2020-07-19 13:50:25    阅读次数:102
11651条   上一页 1 ... 33 34 35 36 37 ... 1166 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!