本文是高可用集群第一篇,搭建pacemaker+corosync集群,下期讲解添加资源。关注"老段工作室公众号",文章更新早知道,每天几分钟,轻轻松松学知识
分类:
其他好文 时间:
2018-02-05 12:28:38
阅读次数:
270
Bizon the Champion isn't just attentive, he also is very hardworking. Bizon the Champion decided to paint his old fence his favorite color, orange. Th ...
分类:
其他好文 时间:
2018-02-04 14:41:09
阅读次数:
181
Fence Repair Time Limit: 2000MS Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and find ...
分类:
其他好文 时间:
2018-02-04 13:58:02
阅读次数:
175
http://www.lydsy.com/JudgeOnline/problem.php?id=1591 有n(5≤n≤250)个栅栏点,FJ需要围成一个栅栏圈,这个圈是一个凸包并且凸包上的点最多。 这题题解写的如此之玄幻,题目看起来如此之不可做…… 然而实际很简单……看了半天题解发现不如看他代码。 ...
分类:
其他好文 时间:
2018-01-31 22:10:01
阅读次数:
169
587. Erect the Fence 题意:输出把所有点包围起来的轮廓线上的点 我的思路:凸包问题,Graham-Scan算法 我的代码: class Solution { public: static bool cmp(Point& a, Point& b) { if (a.y == b.y) ...
分类:
其他好文 时间:
2018-01-25 17:21:55
阅读次数:
141
面向对象编程 — 类定义与实例化 类中的变量是类的数据属性,函数为类的方法(函数)属性 类定义的所有变量和函数都会被存在dict的字典中(命名空间) 类在定义之后代码就可以被执行,不需要被调用 类中的变量是类的数据属性,函数为类的方法(函数)属性 类定义的所有变量和函数都会被存在dict的字典中(命 ...
分类:
编程语言 时间:
2018-01-21 22:30:46
阅读次数:
186
线性规划 线性规划问题 MATLAB的标准形式: 举个栗子吧: 线性规划变形 (带上绝对值咯): 的确很复杂,不能直接用MATLAB直接计算(Lingo完全OK),需要对其进行数学变换: 理论:对于任意的?,可以写成: ? 原来的目标函数就变成了: 不等式就变成了: 嘿嘿,现在就可以建立矩阵了,举个 ...
分类:
其他好文 时间:
2018-01-16 14:04:50
阅读次数:
161
最后一篇主要讲讲在后台文章编辑加入markdown,已经在文章详情页对markdown的解析. ...
分类:
Web程序 时间:
2018-01-15 00:28:55
阅读次数:
309
There are some trees, where each tree is represented by (x,y) coordinate in a two-dimensional garden. Your job is to fence the entire garden using the ...
分类:
其他好文 时间:
2018-01-13 20:51:04
阅读次数:
185