摘要: Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20; Each test case consists of one stri 阅读全文
posted @ 2020-02-17 16:39 kongbursi 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovered that although he ca 阅读全文
posted @ 2020-02-17 16:14 kongbursi 阅读(109) 评论(0) 推荐(0) 编辑
摘要: A musical melody is represented as a sequence of N (1<=N<=20000)notes that are integers in the range 1..88, each representing a key on the piano. It i 阅读全文
posted @ 2020-02-17 16:05 kongbursi 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 后缀数组Da模板: 1 /* 2 后缀数组倍增法Da板子 3 */ 4 #include <cstdlib> 5 #include <cstring> 6 #include <cstdio> 7 #include <algorithm> 8 using namespace std; 9 const 阅读全文
posted @ 2020-02-17 15:30 kongbursi 阅读(287) 评论(0) 推荐(0) 编辑