1 输入多行字符串的方法有2个,一个是使用换行符 \n。另一个是使用 “三引号”。 2 针对不同的符号,有很多这样的“转义序列”(escape sequences)。 \\ 反斜杠 \' 单引号 \" 双引号 \a 响铃 \b 退格 \f 换页 \n 换行 \N \r 回车,或者Carriage R ...
                            
                            
                                分类:
编程语言   时间:
2016-10-13 18:57:08   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                Matt loves letter L.A point set P is (a, b)-L if and only if there exists x, y satisfying:P = {(x, y), (x + 1, y), . . . , (x + a, y), (x, y + 1), . . ...
                            
                            
                                分类:
其他好文   时间:
2016-10-09 20:24:23   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                    传送门 Description Alex has two sequences a1,a2,...,an and b1,b2,...,bm. He wants find a longest common subsequence that consists of consecutive values i ...
                            
                            
                                分类:
其他好文   时间:
2016-10-07 11:25:11   
                                阅读次数:
150
                             
                    
                        
                            
                            
                                Time Limit: 6000MS Memory Limit: 65536KB 64bit IO Format: %lld & %llu Description Wind loves pretty dogs very much, and she has n pet dogs. So Jiajia  ...
                            
                            
                                分类:
其他好文   时间:
2016-10-05 00:38:15   
                                阅读次数:
259
                             
                    
                        
                            
                            
                                Sequence I Problem Description Mr. Frog has two sequences a1,a2,?,an and b1,b2,?,bm and a number p. He wants to know the number of positions q such th ...
                            
                            
                                分类:
其他好文   时间:
2016-10-04 21:01:22   
                                阅读次数:
263
                             
                    
                        
                            
                            
                                    Tree Restoring Time limit : 2sec / Memory limit : 256MB Score : 700 points Problem Statement Aoki loves numerical sequences and trees. One day, Takaha ...
                            
                            
                                分类:
其他好文   时间:
2016-10-02 17:09:00   
                                阅读次数:
226
                             
                    
                        
                            
                            
                                    NanoApe Loves Sequence Ⅱ Accepts: 374 Submissions: 946 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others) NanoApe Love ...
                            
                            
                         
                    
                        
                            
                            
                                原来要从两边开始for啊。。。。。感谢http://blog.csdn.net/XY20130630/article/details/50635756 ...
                            
                            
                                分类:
其他好文   时间:
2016-09-29 21:46:23   
                                阅读次数:
155
                             
                    
                        
                            
                            
                                    A.Price List Sol 求和查询 Code B.NanoApe Loves Sequence Sol 统计出来前面最大的绝对值,后面最大的绝对值,然后枚举中间位置就可以了. Code C.NanoApe Loves Sequence Ⅱ Sol 枚举左端点,做尺取法就可以了. Code D ...
                            
                            
                                分类:
其他好文   时间:
2016-09-26 21:38:46   
                                阅读次数:
282
                             
                    
                        
                            
                            
                                    LCIS Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description Alex has two sequences a1,a2,...,an and b1,b ...
                            
                            
                                分类:
其他好文   时间:
2016-09-25 15:46:59   
                                阅读次数:
106