一、测试是否能管理client使用模块cmd.run可以查看到client的ip地址[root@salt_server~]#salt‘*‘cmd.run‘ipa‘
salt_client1:
1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
inet127.0.0.1/8scopehos..
分类:
其他好文 时间:
2014-09-16 16:09:31
阅读次数:
274
The people who get on in this world are the people who get up and look forthe circumstances they want, and if they can't find them, make them取得成功的人,都是...
分类:
其他好文 时间:
2014-09-16 14:01:40
阅读次数:
104
最大子矩阵,(City Game)SEERC 2004,LA 3029
白书上的例题,看了两节课,终于理解了。DP的思想。
扫描的时候维护 up朝上能有多少空格,left 最多朝左走到多少,right 朝右走到多少。
所以只需要扫描一遍即可得出答案 = up*(right-left+1)
我定义left数组的时候跟 iostream 冲突了。
#inclu...
分类:
其他好文 时间:
2014-09-16 12:45:10
阅读次数:
150
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-09-16 10:38:30
阅读次数:
236
一:html:HyperText Mark-up Language 即超文本标记语言,主要分为以下几个部分,开始标签下面是head标签,head标签里面是标题栏,然后是body,即网页上要显示的内容其扩展名为htm或者html。开始标签网页上的控制信息里面是控制性的东西标题栏 页面标题页面上显示的内...
分类:
Web程序 时间:
2014-09-15 21:13:19
阅读次数:
366
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary...
分类:
其他好文 时间:
2014-09-15 17:54:12
阅读次数:
229
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:
其他好文 时间:
2014-09-15 14:13:38
阅读次数:
153
The Lost HouseTime Limit:3000MSMemory Limit:30000KTotal Submissions:2203Accepted:906DescriptionOne day a snail climbed up to a big tree and finally ca...
分类:
其他好文 时间:
2014-09-15 12:48:48
阅读次数:
229
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space? 1 /** 2 * Definition for singly-linked l....
分类:
其他好文 时间:
2014-09-13 20:06:35
阅读次数:
184
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-09-13 20:04:45
阅读次数:
278