上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 67 下一页
摘要: 题目大意 找一个环串的起点,使得从其开始遍历字典序最小 题解 建立后缀自动机,从根开始走length步,走到的点就是这个最小串的结尾,其step即表示它在串中的位置 step n + 1即为开始位置 C++ include include include include include define 阅读全文
posted @ 2018-01-16 18:25 Mychael 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 题目 求第K小子串 题解 建好SAM后,拓扑排序,反向传递后面所形成的串的数量 最后从根开始,按照儿子形成串的数量与k比较走就好了 C++ include include include include include define LL long long int define REP(i,n) 阅读全文
posted @ 2018-01-16 18:06 Mychael 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目 给定一个只包含小写字母的字符串SS, 请你求出 SS 的所有出现次数不为 11 的子串的出现次数乘上该子串长度的最大值。 输入格式 一行一个仅包含小写字母的字符串SS 输出格式 一个整数,为 所求答案 输入样例 abab 输出样例 4 提示 对于$10\%10%$的数据,|S| include 阅读全文
posted @ 2018-01-16 13:35 Mychael 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题目 Farmer John's farm has N barns, and there are some cows that live in each barn. The cows like to drop around, so John wants to build some roads to 阅读全文
posted @ 2018-01-15 18:38 Mychael 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目 Ratish is a young man who always dreams of being a hero. One day his friend Luffy was caught by Pirate Arlong. Ratish set off at once to Arlong's i 阅读全文
posted @ 2018-01-15 18:00 Mychael 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目 Up to thirty couples will attend a wedding feast, at which they will be seated on either side of a long table. The bride and groom sit at one end, 阅读全文
posted @ 2018-01-15 17:30 Mychael 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 题目 Katu Puzzle is presented as a directed graph G(V, E) with each edge e(a, b) labeled by a boolean operator op (one of AND, OR, XOR) and an integer c 阅读全文
posted @ 2018-01-15 13:59 Mychael 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 欢迎来到Mychael的无声乐章 今天搬到了博客园,以后就在这个安谧的地方创作啦OvO 把以前的博客搬了过来 以前的分类似乎崩了。。。。 【以前一些LaTex公式可能会崩掉,那就回我原博客看吧 "Mychael的无声乐章" 】 阅读全文
posted @ 2018-01-14 17:46 Mychael 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目 John is the only priest in his town. September 1st is the John's busiest day in a year because there is an old legend in the town that the couple w 阅读全文
posted @ 2018-01-14 17:43 Mychael 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目 liympanda, one of Ikki’s friend, likes playing games with Ikki. Today after minesweeping with Ikki and winning so many times, he is tired of such e 阅读全文
posted @ 2018-01-14 14:07 Mychael 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 67 下一页