题目:PeriodTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3813    Accepted Submission(s): 1862Problem DescriptionFor each prefix of a given strin...
                            
                            
                                分类:
编程语言   时间:
2015-04-18 17:46:08   
                                阅读次数:
165
                             
                         
                    
                        
                            
                            
                                E - Period
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
For each prefix of a given string S with N characters (each character has an ASCII code ...
                            
                            
                                分类:
其他好文   时间:
2015-04-16 21:55:41   
                                阅读次数:
112
                             
                         
                    
                        
                            
                            
                                Frank is a portfolio manager of a closed-end fund for Advanced Commercial Markets (ACM ). Fund collects money (cash) from individual investors for a certain period of time and invests cash into variou...
                            
                            
                                分类:
其他好文   时间:
2015-04-13 23:05:36   
                                阅读次数:
363
                             
                         
                    
                        
                            
                            
                                1、添加ThreadGroup(1)、线程组界面解析:线程数:虚拟用户的个数Ramp-up Period:开启每个用户的延迟时间,如果有5个虚拟用户,Ramp-up Period值是5,Jmeter将会在5分钟之内开启全部的用户,开启每个用户的延迟时间是:5 users/5 seconds=1 us...
                            
                            
                                分类:
Web程序   时间:
2015-04-11 19:23:09   
                                阅读次数:
110
                             
                         
                    
                        
                            
                            
                                Period of an Infinite Binary Expansion
Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u
Submit Status Practice POJ
 3358
Appoint description: 
System Crawler  (201...
                            
                            
                                分类:
其他好文   时间:
2015-04-11 13:18:57   
                                阅读次数:
148
                             
                         
                    
                        
                            
                            
                                PeriodTime Limit: 3000MSMemory Limit: 30000KTotal Submissions: 13949Accepted: 6601DescriptionFor each prefix of a given string S with N characters (ea...
                            
                            
                                分类:
其他好文   时间:
2015-04-08 01:05:57   
                                阅读次数:
123
                             
                         
                    
                        
                            
                            
                                当初学KMP的时候也做过这道题,现在看来还是刘汝佳的代码要精简一些,毕竟代码越短越好记,越不容易出错。而且KMP的递推失配函数的代码风格和后面的Aho-Corasick自动机求失配函数的代码风格也是一致的。 1 #include 2 3 const int maxn = 1000000 + 10.....
                            
                            
                                分类:
其他好文   时间:
2015-04-03 18:43:49   
                                阅读次数:
106
                             
                         
                    
                        
                            
                            
                                题意:给一个长为n的字符串,问字符串的前缀是不是周期串,如果是周期串,输出前缀的最后一个字母的位置和最短周期
思路:kmp字符串匹配的性质运用。
对于前i个字符,如果f[i]不等于零,说明在此字符串的前缀中,有一部分[0,f[i]]和本字符串[i-f[i],i]的这一部分是相同的。如果这i个字符组成一个周期串,那么错开的一部分[f[i],i]恰好是一个循环节。(换句话说,如果满足f[i]不等于...
                            
                            
                                分类:
其他好文   时间:
2015-04-02 19:00:30   
                                阅读次数:
130
                             
                         
                    
                        
                            
                            
                                def get_file_path(instance, filename): return 'file/document/%s/%s/%s' % (instance.period.code, instance.student.college.code, filename)class Docum...
                            
                            
                                分类:
Web程序   时间:
2015-04-01 19:23:17   
                                阅读次数:
143
                             
                         
                    
                        
                            
                            
                                问题:
最近程序总会抛出如下异常:
An exception of type'System.Data.SqlClient.SqlException' occurred and was caught.
----------------------------------------------------------------------------------
Type :Syste...
                            
                            
                                分类:
其他好文   时间:
2015-03-30 18:51:50   
                                阅读次数:
141