Series 1大意:Series 1Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 894Accepted Submission(s): 33...
                            
                            
                                分类:
其他好文   时间:
2014-08-12 10:15:14   
                                阅读次数:
231
                             
                         
                    
                        
                            
                            
                                题意:一个数列每一次将它变为 bi = ai+1 - ai 最后数组变为一个数,问你这个数答案为多少。解题思路:最开始以为这个数一定是在int范围以内的,但是推出了公式就不湿了 公式应该是 C(n,0)*a[n] - C(n,1)*a[n-1] + C(n,2)*a[n-2] ....一直到 a[....
                            
                            
                                分类:
其他好文   时间:
2014-08-12 09:01:33   
                                阅读次数:
188
                             
                         
                    
                        
                            
                            
                                题意:
0序列为 a1、a2、a3……an 根据运算规则ai=ai+1-ai计算i序列  如果序列单调则为合理序列  问从0开始到第几序列是合理的  如果一直合理就是nice  如果一开始就不合理就是ugly
思路:
照着题解做 - -b  负责度证明很是精妙  具体见官方题解
这里有一点需要补充  就是压缩0的那个优化  压缩只能在串首和串尾进行  因为要保证答案不变
还有不是每次压缩...
                            
                            
                                分类:
其他好文   时间:
2014-08-11 12:00:22   
                                阅读次数:
201
                             
                         
                    
                        
                            
                            
                                In this post, I’ll detail how to catch specific key presses and why this can be useful. This is another in my series of “requested” tutorials. There r...
                            
                            
                                分类:
编程语言   时间:
2014-08-11 02:46:11   
                                阅读次数:
467
                             
                         
                    
                        
                            
                            
                                Problem Description
Football Manager is a series of football management simulation games developed by Sports Interactive and published by Sega. In this game, you will play a role of a football club m...
                            
                            
                                分类:
其他好文   时间:
2014-08-11 00:31:01   
                                阅读次数:
400
                             
                         
                    
                        
                            
                            
                                题意:
一个含n个数的序列a,每两个相邻的数相减得到一个新数,这些数组成一个新的序列。
如果所有得到的序列都满足非严格的单调性,则原序列为nice series;如果给出的序列
本来不满足单调性,它是ugly series。否则输出k,表示前k个序列都满足单调性,第k+1不满足。
算法:
模拟合并和判断单调性,如果不优化会Tle.
如果去掉前导0和后导0,因为0-0还是0,省去...
                            
                            
                                分类:
其他好文   时间:
2014-08-10 15:48:40   
                                阅读次数:
186
                             
                         
                    
                        
                            
                            
                                Hangman Judge 
In ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are t...
                            
                            
                                分类:
其他好文   时间:
2014-08-09 21:37:19   
                                阅读次数:
414
                             
                         
                    
                        
                            
                            
                                题目地址:Series 1题目大意: 有一个序列A集合为{A1,A2.....An}。第0个序列为其本身,第一个序列为后一个减去前一个(例:A2-A1,A3-A2...An-An-1)以此类推,则第n-1个序列就一定为一个数。输出这个数。解题思路: 通过计算求出的这个数ans=aA1+a2...
                            
                            
                                分类:
其他好文   时间:
2014-08-09 11:13:57   
                                阅读次数:
239
                             
                         
                    
                        
                            
                            
                                If you've been followingmy series on Vim, it should be clear now that Vim has a pretty clear philosophy of how text editing should work. It's based on...
                            
                            
                                分类:
其他好文   时间:
2014-08-08 21:06:16   
                                阅读次数:
361
                             
                         
                    
                        
                            
                            
                                题目链接:HDU 4927 Series
题意:给出一串N个元素的序列,作为第一串序列,第二串序列是第二串序列相邻元素的查值(即Bi=Ai+1-Ai)...第三串....一直到第N-1串是序列中只有一个数。
刚开始想到模拟一发,WA了一把,推出公式,发现是二项展开的系数(正负交替)。组合数,果断要大数,苦逼JAVA不会。和一起队友摸索着,又T了一发,再想到组合数的递推。终于A了
C(a-...
                            
                            
                                分类:
编程语言   时间:
2014-08-08 18:22:16   
                                阅读次数:
265