核心断言 assertArrayEquals(expecteds, actuals) 查看两个数组是否相等。 assertEquals(expected, actual) 查看两个对象是否相等。类似于字符串比较使用的equals()方法 assertNotEquals(first, second) ...
分类:
其他好文 时间:
2014-09-12 22:04:14
阅读次数:
339
Damn CouplesTime Limit:1 Second Memory Limit:32768 KBAs mentioned in the problem "Couples", so many new words appear on the internet. Another special ...
分类:
其他好文 时间:
2014-09-12 18:39:54
阅读次数:
326
block的传值1.第一页中声明一个block,需要传入一个颜色,让当前的view变色//声明一个block,需要传入一个颜色,让当前的view变色void(^changeColor)(UIColor*color)=^(UIColor*color){self.view.backgroundColor=color;};2.第一页中//block传值---------将block给第二个页面Second..
分类:
其他好文 时间:
2014-09-12 10:21:04
阅读次数:
210
参考:http://blog.csdn.net/rually/article/details/8585268#includeusing namespace std;#define MAX 126int first[MAX],second[MAX];void pow(char base[],int ....
分类:
其他好文 时间:
2014-09-12 01:10:42
阅读次数:
305
2-2 Time类的定义
Time Limit: 1000MS Memory limit: 65536K
题目描述
通过本题目的练习可以掌握类与对象的定义;
设计一个时间类Time,私有数据成员有hour(时)、minute(分)、second(秒);
公有成员函数有:setHour(int)设置数据成员hour的值,非法的输入默认为12;se...
分类:
其他好文 时间:
2014-09-11 23:59:22
阅读次数:
496
搜索....
Machine
Time Limit: 2 Seconds Memory Limit: 65536 KB
In a typical assembly line, machines are connected one by one. The first machine's output product will be the second mac...
分类:
其他好文 时间:
2014-09-11 20:59:42
阅读次数:
186
准备部分:什么是redis?Redis是REmoteDIctionaryServer的缩写。一个非关系型数据库为什么要用redis?1,因为redis快,Redisisprettyfast!,110000SETs/second,81000GETs/second2,省去了复杂的SQL。3,可以省去memcache了。开始:下载redis:可以在redis的官网下载:http://red..
分类:
其他好文 时间:
2014-09-11 11:24:45
阅读次数:
220
Problem D
FILL
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the thi...
分类:
其他好文 时间:
2014-09-11 09:42:51
阅读次数:
210
2-2 Time类的定义
Time Limit: 1000MS Memory limit: 65536K
题目描述
通过本题目的练习可以掌握类与对象的定义;
设计一个时间类Time,私有数据成员有hour(时)、minute(分)、second(秒);
公有成员函数有:setHour(int)设置数据成员hour的值,非法的输入默认为12;setMinue(int)设...
分类:
其他好文 时间:
2014-09-10 21:11:01
阅读次数:
249
In one embodiment of the present invention, a method includes switching between a first address space and a second address space, determining if the s...
分类:
其他好文 时间:
2014-09-10 01:35:59
阅读次数:
222