题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3416题意:给出含n个点、m条有向边的图,每条边只能走一次,给出起点和终点,求起点到终点的最短路径有多少条。思路:题目要求是最短路径,当然需要求出最短路,用Dijkstra就可以了,然后我们需要构造网络流...
分类:
其他好文 时间:
2015-12-30 22:03:53
阅读次数:
301
或许我们会有一些这样的场景,定义一个Model类来临时存储一些数据,然后稍后再把这些数据组织成 Dictionary,再做其他用途。可以通过运行时机制 获取类的PropertyList,然后根据 其中的某个Property找到对应的iVar,通过ivar 获取到对应的值。通过属性名作为字典键值,iV...
分类:
其他好文 时间:
2015-12-29 19:19:13
阅读次数:
191
1 var roman = [ 2 ["", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"], 3 ["", "X", "XX", "XXX", "XL", "L", "LX", "LX
分类:
其他好文 时间:
2015-12-24 20:51:35
阅读次数:
211
0x01 :Scrum Meeting基本摘要Beta阶段第四次Scrum Meeting敏捷开发起始时间2015/12/16 00:00 A.M.敏捷开发终止时间2015/12/16 23:00 P.M.会议基本内容摘要ü 在前端方面,ReactJS开发正式进入转折期,此次讨论的过程中各任务基本处...
分类:
其他好文 时间:
2015-12-19 06:34:06
阅读次数:
254
@interface WeatherViewController ()@end@implementation WeatherViewController- (void)viewDidLoad { [super viewDidLoad]; UIImageView* iv=[[UIImage...
分类:
Web程序 时间:
2015-12-16 17:22:05
阅读次数:
122
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
其他好文 时间:
2015-12-16 09:35:09
阅读次数:
194
UIView 动画1.动画的作用提高用户体验, 合理使用动画2.动画的分类a.UIView动画, 基于CALayer动画, 是对CALayer动画的封装 i.属性动画 ii.过渡动画b.CAlayer动画 i.基本动画 ii.关键帧动画 iii.过渡动画 iv.组动画3.UIView动画是对UIvi...
分类:
其他好文 时间:
2015-12-14 23:11:07
阅读次数:
344
@interface ViewController (){ UIImageView* iv; UIButton* btn; UILabel* lbl;}@end@implementation ViewController- (void)viewDidLoad { [super viewDid...
分类:
其他好文 时间:
2015-12-14 18:17:46
阅读次数:
123
#import 1.初始化图片 UIImageView *iv = [[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds]; [iv setImage:[self blurryImage:[UIImage imageNamed....
分类:
移动开发 时间:
2015-12-11 20:28:12
阅读次数:
163
此文来自http://www.cnblogs.com/mchina/archive/2013/03/08/2934473.html在此谢谢原创作者。I. yum方式安装CentOS系统默认的yum软件仓库中没有rlwrap这个包,需要通过第三方yum源安装。a. 安装第三方yum源# rpm -iv...
分类:
其他好文 时间:
2015-12-09 13:37:28
阅读次数:
156