eq(index):将集合中的索引为index的元素提取出来. first():返回集合中的第一个元素. .last():防护集合中的最后一个元素. .slice(start[,end]):返回集合中的给定区间段的元素. first()和las...
                            
                            
                                分类:
Web程序   时间:
2014-06-28 20:12:13   
                                阅读次数:
256
                             
                    
                        
                            
                            
                                find手册中对time的解释:以 atime 为例:-atime n File was last accessed n*24 hours ago. When find figures out how many 24-hours periods ago the file was last...
                            
                            
                                分类:
其他好文   时间:
2014-06-28 12:09:59   
                                阅读次数:
222
                             
                    
                        
                            
                            
                                $@$@ is the name of the target.$?The $? macro stores the list of dependents more recent than the target (i.e., those that have changed since the last ...
                            
                            
                                分类:
其他好文   时间:
2014-06-28 10:50:20   
                                阅读次数:
192
                             
                    
                        
                            
                            
                                题目给出一个长为2000的字符串,和10000询问,每次询问从第l到第r个字符中间有多少个不同的子串。其实,全部预处理。f[i][j]表示从i到j个字符的子串数。重构2000遍SAM。对于新加入的字符,其所对应的last点,新增加的新子串数位step[last]-step[pre[last]]。原因...
                            
                            
                                分类:
其他好文   时间:
2014-06-23 07:14:40   
                                阅读次数:
220
                             
                    
                        
                            
                            
                                //  函数写法初体验
func getMyName(firstName first:String, lastName last:String) -> String{
    //return first + "-" + last
    return first + last
}
var myName = getMyName(firstName: "hu", lastName: "mingta...
                            
                            
                                分类:
其他好文   时间:
2014-06-21 22:53:20   
                                阅读次数:
211
                             
                    
                        
                            
                            
                                STL中的每个算法都非常精妙, ForwardIterlower_bound(ForwardIter first, ForwardIter last,const _Tp& val)算法返回一个非递减序列[first, last)中的第一个大于等于值val的位置。 ForwardIter uppe.....
                            
                            
                                分类:
其他好文   时间:
2014-06-21 09:29:50   
                                阅读次数:
168
                             
                    
                        
                            
                            
                                len is a build-in function that returns the numbers of characters in a string: Since we started counting at zero, the last index should be 5...
                            
                            
                                分类:
其他好文   时间:
2014-06-21 08:17:22   
                                阅读次数:
243
                             
                    
                        
                            
                            
                                在使用nginx重写(即rewrite)机制时,大家一般会用到last和break,关于这两个指令的作用,网友问的挺多,网上的讨论也挺多,这里做个总结:网友的给力解释:last: 重新将rewrite后的地址在server标签中执行break: 将rewrite后的地址在当前location标签.....
                            
                            
                                分类:
其他好文   时间:
2014-06-20 20:32:02   
                                阅读次数:
212
                             
                    
                        
                            
                            
                                和上个题目差不多,这次是找若干个串的LCS,若干#include #define maxn 200100using namespace std;int next[maxn][26],pre[maxn],step[maxn];int f[13][maxn];int N=0,last=0,n=1;int...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 18:49:21   
                                阅读次数:
153
                             
                    
                        
                            
                            
                                1. First artical, notice the last thing - Connecting the DataSource and Delegate:http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table...
                            
                            
                                分类:
移动开发   时间:
2014-06-20 16:18:48   
                                阅读次数:
277