搬寝室
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 16027    Accepted Submission(s): 5447
Problem Description
搬寝室是很累的,xhd深有体会.时间追述2006年...
                            
                            
                                分类:
其他好文   时间:
2014-06-29 07:34:59   
                                阅读次数:
142
                             
                    
                        
                            
                            
                                题目:http://poj.org/problem?id=1753
这个题在开始接触的训练计划的时候做过,当时用的是DFS遍历,其机制就是把每个棋子翻一遍,然后顺利的过了,所以也就没有深究。
省赛前一次做PC2遇到了机会一模一样的题,只不过是把棋盘的界限由4X4改为了5X5,然后一直跑不出结果来,但是当时崔老湿那个队过了,在最后总结的时候,崔老湿就说和这个题一样,不过要枚举第一行进行优化。...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 12:47:10   
                                阅读次数:
205
                             
                    
                        
                            
                            
                                龟兔赛跑
Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10728    Accepted Submission(s): 4038
Problem Description
据说在很久很久以前,可怜的兔子经历了人生中最大的...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 11:52:10   
                                阅读次数:
243
                             
                    
                        
                            
                            
                                sing names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the
 alphabetical v...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 10:37:22   
                                阅读次数:
230
                             
                    
                        
                            
                            
                                n! means n  (n
 1)
 ...
 3
 2
 1
For example, 10! = 10  9
 ...
 3
 2
 1 = 3628800,
and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Find the sum of the digits...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 09:34:10   
                                阅读次数:
215
                             
                    
                        
                            
                            
                                题目
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 09:02:56   
                                阅读次数:
232
                             
                    
                        
                            
                            
                                链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2113
Description
Given a number of strings, can you find how many strings that appears T times?
Input
The input conta...
                            
                            
                                分类:
编程语言   时间:
2014-06-20 09:00:14   
                                阅读次数:
344
                             
                    
                        
                            
                            
                                You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.Thirty days has September,
April, June and November.
All the rest have thirty...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 13:56:52   
                                阅读次数:
166
                             
                    
                        
                            
                            
                                By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 13:45:25   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                Let d(n) be defined as the sum of proper divisors of n (numbers less than
n which divide evenly into n).
If d(a) = b and d(b) = a, where a 
b, then a and b are an amicable pair and each of a and
b...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 13:40:53   
                                阅读次数:
226