码迷,mamicode.com
首页 >  
搜索关键字:vector    ( 11651个结果
c++使用eigen库,矩阵维度错误
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32: error: static assertion failed: YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES #define EIGEN_STATIC_ ...
分类:编程语言   时间:2020-06-30 10:51:31    阅读次数:95
【THUWC2020】工资分配
不要问我为什么我只做thuwc的d1t1 而且是看题解才能做出来 又是大佬口中的签到题 由于替换是整个操作,处理出原序列被替换成了某个序列之后的答案,然后对于询问,找到第一次替换发生的位置即可,这个可以枚举每个位置在单调栈上取个min 刚开始还resize(n+1).... #include<bit ...
分类:其他好文   时间:2020-06-30 10:34:01    阅读次数:70
Multiset (权值线段树模版)
题目链接:https://codeforces.com/contest/1354 想法: 很明显的权值线段树(值域线段树)板子题。 #include <algorithm> #include <string> #include <cstring> #include <vector> #include ...
分类:其他好文   时间:2020-06-30 00:43:08    阅读次数:58
文艺平衡树
#include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include ...
分类:其他好文   时间:2020-06-29 22:59:58    阅读次数:65
A1008 Elevator (20分)
一、技术总结 水题 二、参考代码 #include<iostream> #include<vector> using namespace std; int main(){ int n, sum = 0; cin >> n; vector<int> v(n); for(int i = 0; i < n ...
分类:其他好文   时间:2020-06-29 22:43:53    阅读次数:67
P3378 【模板】堆
P3378 【模板】堆 #include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater<int> >q;//小根堆 int n; int op; int x; int main(){ scanf( ...
分类:其他好文   时间:2020-06-29 18:42:21    阅读次数:76
Codeforces Round #653 (Div. 3)题解
A.Required Remainder 传送门 #include<bits/stdc++.h> using namespace std; #pragma GCC optimize(2) typedef long long ll; typedef unsigned long long ull; ty ...
分类:其他好文   时间:2020-06-29 17:00:21    阅读次数:91
Android 开发 VectorDrawable 矢量图 (七)使用渐变色设置图标颜色
前言 xml属性 <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" android:width="211dp" android ...
分类:移动开发   时间:2020-06-29 16:54:46    阅读次数:121
链表-基础
#include<iostream> #include<cmath> #include<vector> #include<stack> #include<queue> using namespace std; struct Node { Node* next; int val; Node() {}; ...
分类:其他好文   时间:2020-06-29 13:29:53    阅读次数:43
教程翻译-理解基于矢量场寻路算法
这个教程中我会解释向量场寻路(vector field pathfinding)以及它对比其他传统的寻路的优点,比如Dijkstra's算法。对于 Dijkstra's算法和势场(potential fields)概念的理解可以帮助你更好的理解本文,但这不是必要条件。 简介 寻路问题有多种方案,每种 ...
分类:编程语言   时间:2020-06-29 13:29:39    阅读次数:80
11651条   上一页 1 ... 45 46 47 48 49 ... 1166 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!