1)CGRectContainsPoint();//点是否在矩形中2)CGRectContainsRect();//返回是否第一个矩形包含了第二个矩形3)CGRectIntersectsRect();//返回两个矩形是否相交4)CGRectIntersection();//两个矩形的相交的矩形区域5...
分类:
其他好文 时间:
2015-07-31 20:15:18
阅读次数:
163
欢迎转载,转载注明原文地址:http://www.cnblogs.com/NeighborhoodGuo/p/4692979.html又开始新一课的札记啦!最近ProjectProposal也快到了,时间还是比较紧的。不过课程已经过半了还是挺开心的。stanford开放这么有技术含量的课程,还是很钦...
分类:
其他好文 时间:
2015-07-31 20:13:45
阅读次数:
226
DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thoug...
分类:
其他好文 时间:
2015-07-31 20:13:18
阅读次数:
93
题目传送门 1 /* 2 矩阵快速幂:将n个字符串看成n*n的矩阵,如果匹配,矩阵对应位置为1。然后乘m-1次累加所有数字即是答案 3 注意去重 4 详细解释:http://blog.csdn.net/keshuai19940722/article/detai...
分类:
其他好文 时间:
2015-07-31 20:15:03
阅读次数:
103
转载自:http://wenku.baidu.com/link?url=cbioiMKsfrxlzrJmoUMaztbrTelkE0FQ8F9qUHX7sa9va-BkkL4amvzCCAKg2hBv5ZmYL_ERp3Wprd1jVxG-333s6tCJn2LGqCAvFmJ6dXCLogical...
分类:
其他好文 时间:
2015-07-31 20:13:35
阅读次数:
151
题目链接:http://codeforces.com/problemset/problem/295/A我的做法,两次线段树#include #include const int N = 100005;long long sumv[N * 3];long long add[N * 3];long lo...
分类:
其他好文 时间:
2015-07-31 20:13:42
阅读次数:
115
1. UIApplacation向 APNS 注册 push notification 服务(1) 应用程序要支持推送服务, 在网页里面配置 http://developer.apple.com/devceter/ios/index.action(2) 登陆苹果开发者账号 (注意是收费账号 $99 ...
分类:
其他好文 时间:
2015-07-31 20:10:32
阅读次数:
112
首先对于所有的无向边,我们使用并查集将两边的点并起来 若一条边未合并之前,两端的点已经处于同一个集合了,那么说明必定存在可行的环(因为这两个点处于同一个并查集集合中,那么它们之间至少存在一条路径) 如果上一步没有判断出环,那么仅靠无向边是找不到环的 考虑到,处于同一个并查集集合中的点之间必定存在一条...
分类:
其他好文 时间:
2015-07-31 20:09:55
阅读次数:
114
Prime Ring ProblemProblem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circl...
分类:
其他好文 时间:
2015-07-31 20:10:45
阅读次数:
186
模板:#include#include#includeusing namespace std;#define MAX(a,b) (a>b)?a:bconst int SIZE=1000000+16;const int INF=0x30303030;int a[SIZE];int dp[SIZE];i...
分类:
其他好文 时间:
2015-07-31 20:10:52
阅读次数:
107
Activity的生命周期模型在Google提供的官方文档上有比较详细的一个图示public class HelloActivity extends Activity { public static final String TAG = "HelloActivity"; /** ...
分类:
其他好文 时间:
2015-07-31 20:10:31
阅读次数:
103
题意:大数乘法思路:FFT模板123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172...
分类:
其他好文 时间:
2015-07-31 20:09:49
阅读次数:
129
help下enter license sublime2 /3注册码:----- BEGIN LICENSE -----Andrew WeberSingle User LicenseEA7E-855605813A03DD 5E4AD9E6 6C0EEB94 BC99798F942194A6 02396...
分类:
其他好文 时间:
2015-07-31 20:10:10
阅读次数:
149
git reset --hard:把commit撤销,意思是不仅此次commit提交的文件从本地版本库的状态重置,而且把此次commit的文件也从本地目录中删除所以如果你执行之后发现,git status正常,用ls命令查看即将提交的文件列表,发现文件竟然被删掉了。所以这个命令一定要慎用,不懂会害死...
分类:
其他好文 时间:
2015-07-31 20:11:00
阅读次数:
119
ClientScript.RegisterStartupScript(typeof(Page), "Must", ""); ClientScript.RegisterStartupScript(this.GetType(), "", " "); Respo...
分类:
其他好文 时间:
2015-07-31 20:07:27
阅读次数:
136
今天刚好方案公司谈到一个需求方案,要制作一个dvr连接手机,手机能上网的功能。为了简化,让dvr开机轮询,连接某个iphone设备名字特征的手机,希望在app中提供一个输入框,可以按dvr可以识别的特征去设置device name,但是找了一圈资料,发现不行,apple没开放这个api,只有私有的,...
分类:
其他好文 时间:
2015-07-31 20:09:56
阅读次数:
137
DescriptionGiven a graph (V,E) where V is a set of nodes and E is a set of arcs in VxV, and anorderingon the elements in V, then thebandwidthof a node...
分类:
其他好文 时间:
2015-07-31 20:07:23
阅读次数:
154