码迷,mamicode.com
首页 > 其他好文
类型别名、auto类型说明符和decltype类型说明符初探
类型别名        类型别名顾名思义是某种类型的另一个名字,常用于简化类型,易于理解和使用。        传统方法是使用关键字 typedef 。新标准规定使用别名声明(alias declaration)来定义类型别名。 using zhengxing = int;          如果某个类型别名指代的是复合类型或常量,那么把它用到声明语句中往往会让人理解出错。 typ...
分类:其他好文   时间:2015-08-13 22:28:46    阅读次数:184
(一二二)核心动画进阶
上节我们介绍了核心动画基础,这一节介绍核心动画的主要应用和局限性。 【核心动画的局限性】 有一点需要注意,所有的核心动画都是假象,只是修改了View的展示位置,而不能修改真实位置,即使设置了不复位,仿佛是位置移动了,其实layer还在原位,要证明这一点,可以在动画完成后打印layer的位置。 为了获得动画结束时机,可以通过代理,UIView已经遵循了相关协议,可以实现动画开始和结束的两个方法...
分类:其他好文   时间:2015-08-13 22:26:13    阅读次数:122
poj 2075 Tangled in Cables
Tangled in Cables Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 60000/30000K (Java/Other) Total Submission(s) : 19   Accepted Submission(s) : 6 Problem Description You are the owner of S...
分类:其他好文   时间:2015-08-13 22:28:31    阅读次数:173
【HDU 5384】Danganronpa(AC自动机)
看官方题解貌似是个DP 比赛的时候用kuangbin的AC自动机模板瞎搞的,竟然A了,而且跑的还不慢。。 存下模板吧 #include #include #include #include #include #include #include using namespace std; const int maxn = 500010; const int maxd = 26; struct T...
分类:其他好文   时间:2015-08-13 22:26:41    阅读次数:118
hdu 2010 水仙花数
水仙花数 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 124377    Accepted Submission(s): 36790 Problem Description 春天是鲜花的季节,水仙花就是其中最迷人的...
分类:其他好文   时间:2015-08-13 22:26:31    阅读次数:261
宝岛探险1(DFS)
#include using namespace std; int book[51][51]={0}; int a[51][51]; int sum; int n,m; void dfs(int x,int y) { int tx,ty; int k; //定义一个方向的数组 int next[4][2]={{0,1},{1,0},{0,-1},{-1,0}}; ...
分类:其他好文   时间:2015-08-13 22:26:02    阅读次数:200
创建型模式之单例模式
单例模式,英文原话为:Ensure a class has only one instance, and provide a gloabal point of access to it;即:确保一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。       单例模式的主要作用是:确保一个类只有一个实例存在。单例模式可以用在建立目录、数据库连接等需要单线程操作的场合,用于实现对系...
分类:其他好文   时间:2015-08-13 22:26:48    阅读次数:148
分享一些运维意识
1 拒绝重复劳动,能用程序干活的,坚决程序化、平台化; 2 拒绝重复犯错; 3 凡事有备份、可回退,有plan B; 4 用技术来解决流程问题; 5 通过每一次故障进行学习和提升,再回到第2条; 6 运维部门做到服务化,不要把自己当作边缘部门或纯技术论; 7 对身边同事要有激励和正反馈; 8 深入了解所运维的产品,拒绝黑盒运维;...
分类:其他好文   时间:2015-08-13 22:24:47    阅读次数:191
hdu 2011 多项式求和
多项式求和 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 52871    Accepted Submission(s): 30814 Problem Description 多项式的描述如下: 1 - 1/2 +...
分类:其他好文   时间:2015-08-13 22:25:38    阅读次数:212
hdu 3117 Fibonacci Numbers
点击此处即可传送到hdu 3117 **Fibonacci Numbers** Problem DescriptionThe Fibonacci sequence is the sequence of numbers such that every element is equal to the sum of the two previous elements, e...
分类:其他好文   时间:2015-08-13 22:26:20    阅读次数:215
HDU 5389 Zero Escape(2015年多校联合第八场 动态规划)
HDU 5389 Zero Escape(2015年多校联合第八场 动态规划)...
分类:其他好文   时间:2015-08-13 22:25:17    阅读次数:496
LeetCode120——Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [...
分类:其他好文   时间:2015-08-13 22:26:24    阅读次数:162
hdu 1863 畅通工程
畅通工程(prim 解法) Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 21619    Accepted Submission(s): 9334 Problem Description 省政府“畅通工程”的目标是...
分类:其他好文   时间:2015-08-13 22:24:44    阅读次数:219
你真的理解了AsyncTask吗?
在Android应用开发的过程中,我们需要时刻注意保证应用程序的稳定和UI操作响应及时,因为不稳定或响应缓慢的应用将给应用带来不好的印象, 严重的用户卸载你的APP,这样你的努力就没有体现的价值了。本文试图从AsnycTask的作用说起,进一步的讲解一下内部的实现机制。如果有一些开发经验的人, 读完之后应该对使用AsnycTask过程中的一些问题豁然开朗,开发经验不丰富的也可以从中找到使用过程中的注...
分类:其他好文   时间:2015-08-13 22:23:45    阅读次数:238
poj 2253 Frogger
Frogger Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30438   Accepted: 9810 Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenl...
分类:其他好文   时间:2015-08-13 22:23:52    阅读次数:142
宝岛探险2
#include using namespace std; int book[51][51]={0}; int a[51][51]; int sum; int n,m; void dfs(int x,int y,int color) { int tx,ty; int k; //定义一个方向的数组 int next[4][2]={{0,1},{1,0},{0,-1},...
分类:其他好文   时间:2015-08-13 22:24:59    阅读次数:157
find the nth digit
Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9518    Accepted Submission(s): 2758 Problem Description 假设: S1 = 1 S2 = 12 S3 = 123 ...
分类:其他好文   时间:2015-08-13 22:23:31    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!