摘要: String Problem Description There is a string S.S only contain lower case English character.(10≤length(S)≤1,000,000)How many substrings there are that 阅读全文
posted @ 2016-04-22 22:23 meekyan 阅读(454) 评论(0) 推荐(0) 编辑
摘要: D. Kefa and Dishes When Kefa came to the restaurant and sat at a table, the waiter immediately brought him the menu. There were n dishes. Kefa knows t 阅读全文
posted @ 2016-04-22 18:45 meekyan 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 2124: 等差子序列 Description 给一个1到N的排列{Ai},询问是否存在1<=p1=3),使得Ap1,Ap2,Ap3,…ApLen是一个等差序列。 给一个1到N的排列{Ai},询问是否存在1<=p1=3),使得Ap1,Ap2,Ap3,…ApLen是一个等差序列。 Input 输入的第 阅读全文
posted @ 2016-04-22 17:22 meekyan 阅读(280) 评论(0) 推荐(0) 编辑
摘要: E. Beautiful Subarrays One day, ZS the Coder wrote down an array of integers a with elements a1, a2, ..., an. A subarray of the array a is a sequence  阅读全文
posted @ 2016-04-22 14:39 meekyan 阅读(408) 评论(0) 推荐(0) 编辑