码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
leetcode746——爬楼梯——动态规划
#include <iostream> #include <vector> #include <algorithm> using namespace std; //原理:动态规划法 //到达每个阶梯都有一个理论上的最小体力minCost,按照minCost[i] = min(minCost[i-2] ...
分类:其他好文   时间:2021-01-19 12:19:43    阅读次数:0
BindsNET Breakout源码分析
BindsNET:https://github.com/BindsNET/bindsnet 相关代码:bindsnet/examples/breakout/ 1. breakout.py from bindsnet.network import Network from bindsnet.pipel ...
分类:Web程序   时间:2021-01-19 12:05:12    阅读次数:0
CodeForces - 1461B Find the Spruce(递推)
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:其他好文   时间:2021-01-19 11:39:58    阅读次数:0
CF1442A Solution
题目链接 题解 题意可以理解为:是否能将$a$序列中的每个数分为$l_i+r_i$,并满足$l$序列单调不升,$r$序列单调不降。以$l$举例,如果想从左边减去$a_i$,一定会减去$a_i$左侧的每一个数,因此$l_i$单调不升。为满足此,$l_i$一定$\le l_$,而为满足$r_i\ge r ...
分类:其他好文   时间:2021-01-18 11:42:00    阅读次数:0
李超线段树
参考: https://oi-wiki.org/ds/li-chao-tree/ 例题: P4097 [HEOI2013]Segment #include<bits/stdc++.h> #define db double const int p=39989; using namespace std; ...
分类:其他好文   时间:2021-01-18 11:39:35    阅读次数:0
C++STL——Algorithms
通常在C或C++的编程过程中可以使用头文件#inlcude<algorithms>来使用在其他标准库中的一些相关函数,例如最近我在使用的——快排。 快排函数qsort位于#include<stdlib.h>标准函数库中,但是可以使用头指针#inlcude<algorithms>直接调用快排函数而不用 ...
分类:编程语言   时间:2021-01-18 11:20:41    阅读次数:0
关于cin, cin.get(), getchar(),getline()的字符问题
一、getchar()和cin.get() getchar()会将开头的空格或者回车作为输入 1 #include<iostream> 2 using namespace std; 3 int main(){ 4 char ch1 = getchar(); 5 char ch2 = getchar( ...
分类:其他好文   时间:2021-01-18 11:19:13    阅读次数:0
C++对二维数组、结构体之类的排序
对结构体排序 ''' #include<iostream> #include<algorithm> using namespace std; const int si= 101; struct segment { int l, r; bool operator < (const segment v) ...
分类:编程语言   时间:2021-01-18 11:05:01    阅读次数:0
c++多线程基础三 --- 同步并发
1 条件变量 1.1 condition_variable std::condition_variable实际上是一个类,是一个和条件相关的类; condition_variable成员函数: 结合stdunique_lock<stdmutex> 使用 使用规则: wait 使用 void wait ...
分类:编程语言   时间:2021-01-16 12:07:32    阅读次数:0
Inno Setup Compiler 中文使用教程
一、概要 该文章主要解决,Inno Setup Compiler工具的使用问题。 如有什么建议欢迎提出,本人及时修改。【如有任何疑惑可以加Q群:580749909】 二、步骤 (1)下载地址:http://www.jrsoftware.org/isdl.php (2)安装步骤【基础步骤参考:http ...
分类:其他好文   时间:2021-01-16 11:53:11    阅读次数:0
41627条   上一页 1 ... 40 41 42 43 44 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!