从Vista开始,想阻止系统关机就开始变麻烦了,不能只拦截WM_QUERYENDSESSION了,操作系统只给一个应用程序两秒钟的时间去保存自己的东西,两秒钟之后,不管做完了没有,Game Over!可是如果你正在刻录一张光盘呢?两秒钟是都不够的,所以Vista之后也给提供了一种方式阻止系统关机,就是ShutdownBlockReasonCreate函数,只要调用这个函数,第一个参数传递创建主窗口...
                            
                            
                         
                    
                        
                            
                            
                                点击打开链接
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
                             
                    
                        
                            
                            
                                Problem DescriptionThere are n people and n 
target, everyone should get one target, no two people get the same target, the 
last one who get the target...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 09:00:51   
                                阅读次数:
354
                             
                    
                        
                            
                            
                                原地址:http://game.ceeger.com/Unity/Doc/2011/Unity3D_For_Android.html我自认为抵挡诱惑的能力还是很强大的,关键的时候还能把持住自己。今天逛了一下南京的丹凤街,终于受不住Android这美眉的诱惑。她虽脸蛋不怎么滴,但身材火热,且性感,廉价...
                            
                            
                                分类:
移动开发   时间:
2014-05-05 22:18:52   
                                阅读次数:
504
                             
                    
                        
                            
                            
                                原地址:http://www.davebost.com/2013/08/30/creating-a-unity-game-for-windows-8Therecent 
release of Unity 4.2brings with it full-support for deploying Unit...
                            
                            
                         
                    
                        
                            
                            
                                原地址:http://digitalerr0r.wordpress.com/2013/09/30/unity-game-starter-kit-for-windows-store-and-windows-phone-store-games/Posted 
onSeptember 30, 2013byd...
                            
                            
                         
                    
                        
                            
                            
                                很有趣,很有新意的题目。
原来可以这么改变gravity,形成这样的效果的,有意思。
不过题解却是很容易的,就是一个排序问题,O(∩_∩)O~,但是没看到这样的题目还真没想过。...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 23:33:04   
                                阅读次数:
434
                             
                    
                        
                            
                            
                                ACM    巴什博弈     kiki's game      hdu2147     PN表格构建...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 22:43:12   
                                阅读次数:
393
                             
                    
                        
                            
                            
                                本题因为数据量小,可以使用暴力法,时间效率是O(n^3)
但是这里巧用最大子段和的思想,可以把时间效率降到O(n)
思想:
1 想使用一个新的数列,计算连续出现了多少个1和连续出现了多少个零
2 求这个新数列的最大子段和
3 Flip最大子段中的 0 和 1,
4 计算出结果
比暴力法复杂很多了,但是时间效率却提高了三个档次。...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 10:39:46   
                                阅读次数:
584
                             
                    
                        
                            
                            
                                leetcode, Jump Game , 递推求解...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 05:10:22   
                                阅读次数:
181