/**************枚举*****************///public enum Colors{//Red,Yellow,Blue,Black,White//}//public static void main(String[] args) {//Colors c = Colors....
分类:
其他好文 时间:
2014-07-06 17:01:16
阅读次数:
204
栈是一种线性的结构,先进后出(FILO),我们只能在栈的一端对数据进行操作,数据的插入与删除只能在栈的一端进行。 在STL中的栈stack一共只有5中操作。 1.stack::empty() 2.stack::size() 3.stack::push(typename t) 4.sta...
分类:
其他好文 时间:
2014-07-06 14:24:34
阅读次数:
183
by:白书
#define M 10000
int pre[M],dfs_clock,iscut[M],low[M],bcc_cnt,bccno[M];
vectorG[M],bcc[M];
struct Edge
{
int u,v;
Edge(int from,int to)
{
u=from;
v=to;
}
};
stack S;
int dfs(int u,int fa...
分类:
其他好文 时间:
2014-07-06 11:29:32
阅读次数:
198
按他的方法排序,每次移动一个数到顶点,排成需要的序列。
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the p...
分类:
其他好文 时间:
2014-07-06 09:15:42
阅读次数:
211
下午在重新整理一份代码,中间遇到这么一个问题:要么出现内存访问冲突,要么出现“Stack around the variable XX was corrupted”错误。很是恼火!先出现的是“Stack around the variable XX was corrupted”错误,网上查到的第一种...
分类:
其他好文 时间:
2014-07-05 17:38:49
阅读次数:
399
ansible的Conditionals和loops和salt-stack比起来真的太强大了。salt-stack使用判断循环,好像,只能使用模板里面的判断和循环。而ansible本身自带了适用于各种场景的判断循环插件。。不但如此,像loops,我们还可以自己编写插件,满足我们的实际需求。先说说Conditionals吧Con..
分类:
其他好文 时间:
2014-07-04 06:30:22
阅读次数:
318
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:
其他好文 时间:
2014-07-03 20:45:35
阅读次数:
201
最近准备跳槽的事情,于是把C++翻出来看,顺便做了一些练习,主要是数据结构方面的,就贴在这里做个系列,权当督促自己了。第一天,写了一个栈,调试了下没什么问题,内存泄露的问题也解决了。 1 #ifndef STACK_H 2 #define STACK_H 3 4 #include "std...
分类:
编程语言 时间:
2014-07-02 20:35:37
阅读次数:
216
【题目】
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
click to show clarification.
Clarification:
What constitutes a word?
A sequence of non-space characters constitutes a word....
分类:
其他好文 时间:
2014-07-02 08:34:34
阅读次数:
170
说起变量,ansible中的变量,差不多等于salt-stack里面的pillar+grains吧ansible中的变量主要来源于,楼主总结了一下,大概有这么几个地方吧Inventory(hostvars,groupvars)playbook里面命令行roles里面来自于nodes上面的facts这些类型的变量,1-4一般来说都是咱们用户自己定义..
分类:
其他好文 时间:
2014-07-02 06:10:50
阅读次数:
283