Vasya and Football
Vasya and Wrestling
Vasya and Basketball
Vasya and Chess...
                            
                            
                                分类:
其他好文   时间:
2014-12-12 11:50:01   
                                阅读次数:
254
                             
                    
                        
                            
                            
                                题目描述
Problem D: Knight's Trip
 In chess, each move of a knight consists of moving by two squares horizontally and one square vertically, or by one square horizontally and two squares vertically....
                            
                            
                                分类:
其他好文   时间:
2014-12-09 14:03:08   
                                阅读次数:
617
                             
                    
                        
                            
                            
                                To decide who would play first in a human vs. AI chess match,the human contender, Garry, suggested flipping a coin. 为了决定谁在人机象棋比赛里有先走权,嘉里说,抛硬币决定。Heprod...
                            
                            
                                分类:
其他好文   时间:
2014-12-07 06:29:17   
                                阅读次数:
303
                             
                    
                        
                            
                            
                                publicclassQueen{
intQUEEN_COUNT=8;//随便你定义几个皇后了,你可以循环产生a个到b个皇后的解
staticfinalintEMPTY=0;//如果count[x][y]==EMPTY,则可以放置皇后;反之,其正上方或斜上方必己放置皇后
int[][]count=newint[QUEEN_COUNT][QUEEN_COUNT];//
int[]QueenIndex=new..
                            
                            
                                分类:
其他好文   时间:
2014-12-06 06:40:17   
                                阅读次数:
205
                             
                    
                        
                            
                            
                                codeforces 493D Vasya and Chess(博弈?)
题目大意:
	给一个N*N的棋盘。然后一开始 白队的Queen在(1,1),黑队的Queen在(1,n)。
	其余的点都是绿棋子。
	Queen可以走横竖和斜线。(就是国际象棋里面Queen的走法,但是必须要吃子)。
	问白方先走。谁能嬴(没得走或者被吃了就死了)...
                            
                            
                                分类:
其他好文   时间:
2014-12-04 18:05:59   
                                阅读次数:
134
                             
                    
                        
                            
                            
                                这个题略搞笑,蒙的。。。奇偶判断了下就过了。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 usi...
                            
                            
                                分类:
其他好文   时间:
2014-12-04 06:15:06   
                                阅读次数:
140
                             
                    
                        
                            
                            
                                Don't Get RookedIn chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small c...
                            
                            
                                分类:
其他好文   时间:
2014-11-28 14:02:19   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                题目大意:给出棋盘的大小,问任意行和列放置的棋子都不超过两个有多少种方案。
思路:一个比较麻烦的DP。f[i][j][k]表示到前i行,放置了一个棋子的列为j,放置了两个棋子的列为k的方案数,然后有六个转移:
f[i][j][k] = f[i - 1][j][k] 								//不取
           + f[i - 1][j - 1][k] * (n - (j - 1)...
                            
                            
                                分类:
其他好文   时间:
2014-11-26 19:07:05   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                获取摄像机内部参数矩阵和摄像机畸变参数Test data: use images in your data/chess folder.1,Compile opencv with samples by setting BUILD_EXAMPLES to ON in cmake configuratio...
                            
                            
                                分类:
其他好文   时间:
2014-11-26 11:14:06   
                                阅读次数:
288
                             
                    
                        
                            
                            
                                Knight Moves
Time Limit: 1000MS
 
Memory Limit: 30000K
Total Submissions: 22204
 
Accepted: 10374
Description
Background 
Mr Somurolov, fabulous chess-gamer indeed, asse...
                            
                            
                                分类:
其他好文   时间:
2014-11-25 16:32:44   
                                阅读次数:
168