摘要: 摘自 http://blog.csdn.net/lonelyroamer/article/details/7666851 阅读全文
posted @ 2015-01-08 10:30 stonehat 阅读(1144) 评论(1) 推荐(0) 编辑
摘要: 将一个UIView显示在最前面只需要调用其父视图的bringSubviewToFront()方法。将一个UIView层推送到背后只需要调用其父视图的sendSubviewToBack()方法。 阅读全文
posted @ 2014-11-27 10:03 stonehat 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 在UIViewController里面这样设置:self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"1.jpg"] ]; 阅读全文
posted @ 2014-11-26 14:21 stonehat 阅读(224) 评论(0) 推荐(0) 编辑
摘要: ProblemApermutationof sizeNis a sequence ofNnumbers, each between 0 andN-1, where each number appears exactly once. They may appear in any order.There... 阅读全文
posted @ 2014-04-26 10:40 stonehat 阅读(720) 评论(0) 推荐(0) 编辑
摘要: ProblemA tree is a connected graph with no cycles.A rooted tree is a tree in which one special vertex is called the root. If there is an edge betweenX... 阅读全文
posted @ 2014-04-26 10:30 stonehat 阅读(663) 评论(0) 推荐(0) 编辑
摘要: ProblemShota the farmer has a problem. He has just moved into his newly built farmhouse, but it turns out that the outlets haven't been configured cor... 阅读全文
posted @ 2014-04-26 10:29 stonehat 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 10209 - Is This Integration ? #include #include /**///多次错误都是因为我将PI定义为3.1415926#define PI acos(-1.0)int main(){ double r; while(scanf("%lf",&r)!=EOF) { double x,y,z; z=r*r*(... 阅读全文
posted @ 2014-04-23 11:42 stonehat 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 时间限制:12000ms单点时限:6000ms内存限制:256MB描述A市是一个高度规划的城市,但是科技高端发达的地方,居民们也不能忘记运动和锻炼,因此城市规划局在设计A市的时候也要考虑为居民们建造一个活动中心,方便居住在A市的居民们能随时开展运动,锻炼强健的身心。城市规划局希望活动中心的位置满足以... 阅读全文
posted @ 2014-04-19 15:27 stonehat 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 时间限制:4000ms单点时限:2000ms内存限制:256MB描述有一个N个节点的树,其中点1是根。初始点权值都是0。一个节点的深度定义为其父节点的深度+1,。特别的,根节点的深度定义为1。现在需要支持一系列以下操作:给节点u的子树中,深度在l和r之间的节点的权值(这里的深度依然从整个树的根节点开... 阅读全文
posted @ 2014-04-19 15:26 stonehat 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 时间限制:2000ms单点时限:1000ms内存限制:256MB描述一般来说,我们采用针孔相机模型,也就是认为它用到的是小孔成像原理。在相机坐标系下,一般来说,我们用到的单位长度,不是“米”这样的国际单位,而是相邻像素的长度。而焦距在相机坐标系中的大小,是在图像处理领域的一个非常重要的物理量。假设我... 阅读全文
posted @ 2014-04-19 15:25 stonehat 阅读(460) 评论(0) 推荐(0) 编辑