1. 引言
     2048 这段时间火的不行啊,大家都纷纷仿造“百家争鸣”,于是出现了各种技术版本:除了手机版本,还有C语言版、Qt版、Web版、java版、C#版等,刚好我接触Python不久,于是弄了个Python版——控制台的2048,正好熟悉下Python语法,程序运行效果如下,左右两幅图是连续的:
图 1  Python版控制台2048运行截图...
                            
                            
                                分类:
编程语言   时间:
2014-05-09 01:15:50   
                                阅读次数:
528
                             
                    
                        
                            
                            
                                题意:给定一个n*n的表格,在一个角上放入一块石头,然后两个人轮流移动石头,只能水平和竖直移动石子,而且不能移到已经访问的格子,最后没法移动的玩家为输者。现在输入任意的n输出谁输谁胜。这个随便画两个就能很容易的推算出胜负。
太简单的水题。...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 15:41:33   
                                阅读次数:
294
                             
                    
                        
                            
                            
                                1) BestHTML5and javascript game engine Library- 
Impactjs2) Best HTML5 and javascript game engine Library - Craftyjs3) Best HTML5 
and javascript game e...
                            
                            
                                分类:
编程语言   时间:
2014-05-08 05:37:13   
                                阅读次数:
360
                             
                    
                        
                            
                            
                                Hotter Colder
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 2343
 
Accepted: 981
Description
The children's game Hotter Colder is played as follows. Player A...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 23:39:58   
                                阅读次数:
590
                             
                    
                        
                            
                            
                                The Morning Commute
The Chef commutes to work every day using the city's underground metro. The schedule for the trains has recently been changed and he wants to know how long it will take to tra...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 15:37:11   
                                阅读次数:
406
                             
                    
                        
                            
                            
                                Subtraction Game 1
Chef is playing a game on a sequence of N positive integers, say A1, A2, ... AN. The game is played as follows.
If all the numbers are equal, the game ends.Otherwise
Sele...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 03:14:01   
                                阅读次数:
280