码迷,mamicode.com
首页 >  
搜索关键字:one person game    ( 39118个结果
ios开发笔记----exc_bad_access(code=1, address=0x789870)野指针错误,假死debug状态
错误原因: exc_bad_access(code=1, address=0x789870)野指针错误,主要的原因是,当某个对象被完全释放,也就是retainCount,引用计数为0后。再去通过该对象去调用其它的方法就会出现野指针错误。 例如: Person *jerry = [[Person alloc]init];  //  retainCount引用计数为1 [jerry eat];...
分类:移动开发   时间:2014-07-22 23:05:16    阅读次数:372
poj1258 最小生成树 普林姆
Agri-Net Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 36780   Accepted: 14825 Description Farmer John has been elected mayor of his town! One of his campa...
分类:其他好文   时间:2014-07-22 23:04:15    阅读次数:229
Windows 7下阻止系统关机
从Vista开始,想阻止系统关机就开始变麻烦了,不能只拦截WM_QUERYENDSESSION了,操作系统只给一个应用程序两秒钟的时间去保存自己的东西,两秒钟之后,不管做完了没有,Game Over!可是如果你正在刻录一张光盘呢?两秒钟是都不够的,所以Vista之后也给提供了一种方式阻止系统关机,就是ShutdownBlockReasonCreate函数,只要调用这个函数,第一个参数传递创建主窗口...
分类:Windows程序   时间:2014-07-22 23:02:15    阅读次数:618
POJ 1463 Strategic game 最小点覆盖集(树形dp)
点击打开链接 Strategic game Time Limit: 2000MS   Memory Limit: 10000K Total Submissions: 6105   Accepted: 2808 Description Bob enjoys playing computer games, especially st...
分类:其他好文   时间:2014-07-22 23:01:55    阅读次数:304
codeforces Towers 题解
Little Vasya has received a young builder’s kit. The kit consists of several wooden bars, the lengths of all of them are known. The bars can be put one on the top of the other if their lengths are the...
分类:其他好文   时间:2014-07-22 23:01:53    阅读次数:323
[leetcode] Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2014-05-02 00:37:20    阅读次数:349
HDU 1846 Brave Game (巴什博弈)
各位勇敢者要玩的第一个游戏是什么呢?很简单,它是这样定义的: 1、 本游戏是一个二人游戏; 2、 有一堆石子一共有n个; 3、 两人轮流进行; 4、 每走一步可以取走1…m个石子; 5、 最先取光石子的一方为胜; 如果游戏的双方使用的都是最优策略,请输出哪个人能赢。...
分类:其他好文   时间:2014-04-30 22:44:39    阅读次数:282
HDU 2147 kiki's game (巴什博弈)
kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/1000 K (Java/Others) Total Submission(s): 5982    Accepted Submission(s): 3552 Problem Description Recently kiki h...
分类:其他好文   时间:2014-04-30 22:35:38    阅读次数:258
[ACM] poj 1700 Crossing River (经典过河问题)
Crossing River Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 10212   Accepted: 3855 Description A group of N people wishes to go across a river with only one...
分类:其他好文   时间:2014-04-30 22:21:38    阅读次数:212
javaScript 对象的使用
1 JavaScript中对象 javaScript中所有的事物都是对象,对象时指带有属性和方法的 对象的创建 定义并创建对象的实例,然后给对象添加属性 person=new Object(); person.firstname="Bill"; person.lastname="Gates"; 隐式创建 person={firstname:"John",lastname:"Doe"...
分类:编程语言   时间:2014-04-30 22:14:38    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!