生活不会停步不前,我们编写代码须要进一切努力编写尽可能宽松灵活的代码。时间的耦合时间是软件架构的一个常常被忽视的方面,吸引我们的时间只是进度表上的时间。作为软件自身的一种设计要素,时间有两个方面对我们很重要:并发和次序。我们在编程时,通常并没有把这两个方面放在心上。当人们最初坐下来开始设计架构、或是...
分类:
其他好文 时间:
2015-04-05 20:15:31
阅读次数:
127
思路:利用栈的来实现,而递归本质上就是一个栈结构 1 #include 2 #include 3 4 /* 5 剑指offer 6 Pro5 反转链表输出 7 xsfelvis 8 */ 9 //定义链表的结构类型10 typedef struct LNode11 {12 int da...
分类:
其他好文 时间:
2015-04-05 20:13:59
阅读次数:
124
IAPHelper.h//// IAPHelper.h// airplay//// Created by apple on 13-10-23.// Copyright (c) 2013年 itcast. All rights reserved.//#import typedef void (...
分类:
其他好文 时间:
2015-04-05 20:13:27
阅读次数:
409
3016: [Usaco2012 Nov]Clumsy CowsTime Limit:1 SecMemory Limit:128 MBSubmit:91Solved:69[Submit][Status][Discuss]DescriptionBessie the cow is trying to t...
分类:
其他好文 时间:
2015-04-05 20:12:05
阅读次数:
129
题目:Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one ...
分类:
其他好文 时间:
2015-04-05 20:12:55
阅读次数:
168
和BZOJ消耗站一样,先将那个询问的简图构建出来,然后就是简单的树形DP。(倍增数组开小了,然后就狂WA,自己生成的极限数据深度又没有那么高,链又奇迹般正确) 1 #include 2 #include 3 #include 4 #include 5 #define min(a,b...
分类:
其他好文 时间:
2015-04-05 20:12:30
阅读次数:
197
1.问题描述输入年份,判断其是否为闰年。2.判断条件1)能被4整除且不能被100整除的为闰年。2)能被100整除且被400整除的为闰年。3.等价类划分编号有效等价类编号无效等价类1能被400整除3能被100整除不能被4整除2能被4整除不能被100整除4不能被4整除5非法输入(包括负数)4.测试用例编...
分类:
其他好文 时间:
2015-04-05 20:12:26
阅读次数:
158
平方和与立方和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 109261 ...
分类:
其他好文 时间:
2015-04-05 20:11:58
阅读次数:
99
matlab中,每个figure都有(而且仅有)一个colormap,翻译过来就是色图。COLORMAP(MAP) 用MAP矩阵映射当前图形的色图。COLORMAP('default')默认的设置是 JET.MAP = COLORMAP获得当前色图矩阵.COLORMAP(AX,...) 应用色图到A...
分类:
其他好文 时间:
2015-04-05 20:09:47
阅读次数:
213
2016: [Usaco2010]Chocolate EatingTime Limit:10 SecMemory Limit:162 MBSubmit:224Solved:87[Submit][Status][Discuss]Description贝西从大牛那里收到了N块巧克力。她不想把它们马上吃完...
分类:
其他好文 时间:
2015-04-05 20:10:48
阅读次数:
117
1.所谓使用类的静态方法创建对象,就是指使用类名调用一次它的静态方法(非显式调用alloc)便可以得到一个新建的对象,比如下面两个例子: NSString* str1 = [NSString stringWithString:@"hello world"]; NSMutableString* str...
分类:
其他好文 时间:
2015-04-05 20:10:16
阅读次数:
115
转自:http://www.verydemo.com/demo_c167_i1382.html针对:预览文件(图片,PDF)文件来源为action中的inputStream重点: structs2的action的配置 action的写法和结果类型 resulttype的写法 网页上实时显示1stru...
分类:
其他好文 时间:
2015-04-05 20:11:05
阅读次数:
153
1.图的表示a.邻接矩阵:适合稠密图(|E|接近|V|2)//用二维数组表示邻接矩阵int G[|V|][|V|];//初始化for(int i=0;i Adj;//所有顶点};//初始化void AddEdge(Graph &G,int i,int j,int weight,int w[][|V|...
分类:
其他好文 时间:
2015-04-05 20:08:54
阅读次数:
173
第几天?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 90652 Accepted Submission(s...
分类:
其他好文 时间:
2015-04-05 20:09:22
阅读次数:
123
说实话,我觉得反而慢了。不过前面两个函数的二进制写法还是很赞的。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int Save = 2; 8 int N, cnt...
分类:
其他好文 时间:
2015-04-05 20:10:19
阅读次数:
112
分别在两个类中定义对方的类类型变量 双向 如果只关联一方,就是单向public class NinetyFour { public static void main(String[] args) { Husband h = new Husband("小白",'男')...
分类:
其他好文 时间:
2015-04-05 20:08:22
阅读次数:
112
http://www.wanga.com/cu.phpThe Customiser incorporates all of the features of Magic Mouse. It also allows you to quickly and permanently customise the...
分类:
其他好文 时间:
2015-04-05 20:08:54
阅读次数:
139