题目描述: David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his countr ...
分类:
其他好文 时间:
2018-06-09 10:17:39
阅读次数:
206
原博客出处:https://blog.csdn.net/yasola/article/details/74276255 通常次小生成树是使用Prim算法进行实现的,因为可以在Prim算法松弛的同时求得最小生成树上任意两点之间的最长边。但是利用Kruskal算法却没办法在松弛的同时求得。 所以我们就要 ...
分类:
其他好文 时间:
2018-06-08 14:35:14
阅读次数:
222
本节讨论 Prometheus Operator 的架构。
分类:
其他好文 时间:
2018-06-08 12:13:50
阅读次数:
111
Problem X: 删除数组元素 Description 定义Array类,其中只有一个int类型的数组,数组元素个数未知。 重载其<<、>>、-运算符。其中"<<"输出所有的数组元素,两两之间用1个空格隔开;">>"根据输入的格式读取数组元素;"-"接收一个int类型的参数a,将数组中与a相等的 ...
分类:
编程语言 时间:
2018-06-08 10:35:33
阅读次数:
236
本节讨论 Prometheus Operator 的架构。因为 Prometheus Operator 是基于 Prometheus 的,我们需要先了解一下 Prometheus。 Prometheus 架构 Prometheus 是一个非常优秀的监控工具。准确的说,应该是监控方案。Promethe ...
分类:
其他好文 时间:
2018-06-08 10:32:43
阅读次数:
159
第一题 include using namespace std; class Base1{ //基类base1 加法运算 public: Base1(double a,double b):m(a),n(b){cout a b; cout using namespace std; class vehi ...
分类:
其他好文 时间:
2018-06-08 00:47:27
阅读次数:
157
Problem S: 分数类的模板数组类 Description 封装一个模板数组类Array,支持一下操作: 1. 构造函数Array(int n),将数组初始化为n个存储空间; 2. 函数input(int n),读取最多n个元素,但不能超过数组存储空间的上限; 3. 重载下标运算符,返回数组的 ...
分类:
编程语言 时间:
2018-06-07 21:47:59
阅读次数:
260
0、思路 创建一个新的逻辑分区,将新的逻辑分区格式化ext3(或其他类型)的文件系统,mount到磁盘空间不够的文件系统,就跟原来的分区/文件系统一样的使用 1、准备 1.1 注意使用VMware自带的Expand功能不能有Snapshot存在,所以在expand之前先把所有的Snapshot删掉了 ...
分类:
系统相关 时间:
2018-06-07 17:48:31
阅读次数:
237
题意:中文题意,略 思路:这就是一个数学模型,你简化以后发现这样一个递推式,在m>3的时候成立,a[m]=(n-2)*a[n-1]+(n-1)*a[n-2];这时候就只能用矩阵加速了,还是熟悉的矩阵,熟悉的味道(只不过没有改快速幂的参数,T了) 代码: ...
分类:
其他好文 时间:
2018-06-06 16:46:36
阅读次数:
156