这道题,首先想到的就两个,一是贪心,二是动规,然而1=Wj ,因此最少 W/W1 段),最后得出的段数就是高度了,那么这道题应该就化解了。
分类:
其他好文 时间:
2015-09-20 14:30:55
阅读次数:
111
实验系统:CentOS 6.6_x86_64实验前提:提前准备好编译环境,防火墙和selinux都关闭软件介绍:tmux是一个优秀的终端复用软件,类似GNU Screen,但来自于OpenBSD,采用BSD授权。使用它最直观的好处就是,通过一个终端登录远程主机并运行tmux后,在其中可以开启多个控制...
分类:
其他好文 时间:
2015-09-18 11:36:09
阅读次数:
389
D. Bear and BlocksLimak is a little bear who loves to play. Today he is playing by destroying block towers. He builtntowers in a row. Thei-th tower is...
分类:
其他好文 时间:
2015-09-16 00:55:47
阅读次数:
237
一、什么是ansible我们在管理服务器时首先应该是安装操作系统,而关于自动化安装操作系统工具常见的有:cobbler。而在装完操作系统后就是配置系统的相关服务的配置文件,而关于此类的自动化工具常见的有:puppet、saltstack。而日常维护中我们还需要在各主机执行相关命令等操作..
分类:
其他好文 时间:
2015-09-12 01:05:48
阅读次数:
294
问题:pip install ansible 错误: src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’ error: command 'gcc' failed with exit...
分类:
其他好文 时间:
2015-09-10 13:03:58
阅读次数:
278
cheungssh是一种支持web管理界面的批量部署,和ansible一样是基于ssh协议的一种轻量级的批量部署。而web页面的支持这是一个趋势,我觉得cheungssh将会越来越火,会有更多人使用,于是便学习了一下。下面说说我的简单部署吧:1.下载cheungssh[root@localhost]#gitclonehttps://g..
分类:
其他好文 时间:
2015-09-06 11:09:42
阅读次数:
1337
1 #include 2 #include 3 using namespace std; 4 const int N=100; 5 int tower[N][N],f[N][N]={0},n; 6 void upMax(int &a,const int &b){ 7 a=(a>b?a:b)...
分类:
编程语言 时间:
2015-09-04 18:23:28
阅读次数:
252
A. Hanoi towerTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100114Descriptionyou the conditions of this task. There are 3 pivots:...
分类:
其他好文 时间:
2015-09-03 19:14:44
阅读次数:
365
DescriptionThe cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 =0表示取...
分类:
编程语言 时间:
2015-09-02 21:54:00
阅读次数:
320
之前一直误解为shell和command一样是执行远程命令的,最近看了一下官方帮助文档才发现,犯了低级错误,其实每个模块都有自己的应用常用;简单说明一下ansible几个常用模块的区别,以便自己总结。1.模块命令详细信息查询ansible-doc模块名称2.command模块[执行远程命令]ansiblec..
分类:
系统相关 时间:
2015-09-02 19:10:49
阅读次数:
380