NO.6章 C++标准库(STL)介绍 1. vector 2. set 3. string 4. map 5. queue 6. priority_queue 7. stack 8. pair 9. algorithm 下常用函数 1)max()、min()、abs() 2)swap() 3)re ...
分类:
其他好文 时间:
2018-04-13 22:26:53
阅读次数:
128
https://www.lydsy.com/JudgeOnline/problem.php?id=1012 现在请求你维护一个数列,要求提供以下两种操作:1、 查询操作。语法:Q L 功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值。限制:L不超过当前数列的长度。2、 插入操作。语法:A ...
分类:
Web程序 时间:
2018-04-12 17:09:15
阅读次数:
254
1 #include 2 3 using namespace std; 4 5 #define MP make_pair 6 #define PB push_back 7 #define ls first 8 #define rs second 9 typedef long long LL; 10 ... ...
分类:
其他好文 时间:
2018-04-11 00:13:57
阅读次数:
154
FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of mice and put as large ...
分类:
其他好文 时间:
2018-04-10 10:57:54
阅读次数:
116
当我们写好了串口程序,总是需要测试的;但是如何测试呢?我们有的时候可能根本就没有外接串口设备啊? 本blog提供两种测试方式: 虚拟串口:使用VSPD软件虚拟一个串口设备 真实串口:将串口设备连接到VM的Linux系统 1. 虚拟串口 使用虚拟串口,主要原理是依靠软件虚拟出来一个串口设备,然后使用串 ...
分类:
其他好文 时间:
2018-04-09 21:04:46
阅读次数:
127
github项目地址:https://github.com/handsomesnail/WordCountPro 合计 基本任务:排序后将词频输出到文件 代码贡献: //输出结果到result.txtvoid Output() { vector<pair<string, int>> tempVect ...
分类:
其他好文 时间:
2018-04-08 15:55:15
阅读次数:
152
Description outputstandard output In one kingdom there are n cities and m two way roads. Each road connects a pair of cities, and for each road we kno ...
分类:
其他好文 时间:
2018-04-08 13:19:47
阅读次数:
206
D. Pair Of Lines 题目大意: 给n个点,问是否存在两条直线(可以为同一条)能覆盖所有的点。 解题思路: 首先一个或者两个或者三个点都是肯定可以用两条线覆盖的。如果点的个数大于等于三个,那么我们已经可以确定至少一条线的:点1和点2可能在一条线上,点2和点3可能在一条线上,点3和点1可能 ...
分类:
其他好文 时间:
2018-04-08 00:14:21
阅读次数:
136
问下,文献中关于CO2 势能模型里面 ε = Depth of LJ potential 的单位K 是什么意思? manual 里面解释的ε 是 energy units 要是写pair_coeff 时,单位还用转化吗 ,我用的real单位 谢谢 答:这里有误,正确的应该是ε/kB(K),kB是玻尔 ...
分类:
其他好文 时间:
2018-04-07 17:44:44
阅读次数:
371