1. onAttach ------called once the fragment is associated with its activity2. onCreate-------called to do initial creation of the fragment3. onCreateVi...
分类:
移动开发 时间:
2014-07-11 10:23:34
阅读次数:
252
原题:ZOJ 3768http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3768一个结论:一个正整数总能用不超过三个前n项相加表示。先找一个的,在找两个,三个的,二分找,用lower_bound函数。代码:#include #i...
分类:
其他好文 时间:
2014-07-11 10:13:33
阅读次数:
223
实现部分代码关于view的德国国旗实现@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, ...
分类:
其他好文 时间:
2014-07-11 09:46:07
阅读次数:
200
原题:ZOJ 3772http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3772这题算是长见识了,还从没坐过矩阵+线段树的题目呢,不要以为矩阵就一定配合快速幂来解递推式的哦。由F(x)=F(x-1)+F(x-2)*A[x],转化...
分类:
其他好文 时间:
2014-07-11 09:03:35
阅读次数:
236
保存用户对询问的回答结果,作为进一步推理的条件
还是从GOAL段开始。起始句是write_startform()
write_startform():-
write("\n").
注意!上一句应为write("\n").
GENI虚拟主机没有“cgi-bin”这个子目录。
在GOAL中,紧跟上一句的是assert_conditions(ParmList1)
assert_conditions(...
分类:
Web程序 时间:
2014-07-11 00:18:19
阅读次数:
226
题目链接:
点我点我
题目:
ChiBi
Time Limit: 5 Seconds Memory Limit: 32768 KB
watashi's mm is so pretty as well as smart. Recently, she has watched the movie Chibi. So she knows more about the...
分类:
其他好文 时间:
2014-07-10 22:27:00
阅读次数:
262
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIView *redView = [[UIView...
分类:
其他好文 时间:
2014-07-10 16:50:02
阅读次数:
185
How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop and min should a...
分类:
其他好文 时间:
2014-07-10 16:45:33
阅读次数:
210
We all know how to search through an array for an element whose value equals the target value, but how to search for the element that has value greate...
分类:
其他好文 时间:
2014-07-10 16:08:21
阅读次数:
168
Socket通讯的过程Server端Listen(监听)某个端口是否有连接请求,Client端向Server端发出Connect(连接)请求,Server端向Client端发回Accept(接受)消息。一个连接就建立起来了。Server端和Client端都可以通过Send,Write等方法与对方通信...
分类:
其他好文 时间:
2014-07-10 15:21:16
阅读次数:
176