二分
文章平均质量分 52
mhlwsk
这个作者很懒,什么都没留下…
展开
-
[POJ2112]Optimal Milking 做题笔记
Description FJ has moved his K (1 <= K <= 30) milking machines out into the cow pastures among the C (1 <= C <= 200) cows. A set of paths of various lengths runs among the cows and the milki原创 2016-03-03 16:40:56 · 373 阅读 · 0 评论 -
[POJ1743]Musical Theme 做题笔记
题目链接:http://poj.org/problem?id=1743 后缀数组+二分答案,可以看一下罗神的《后缀数组——处理字符串的有力工具》#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N=20050; int n,num[N]; int sa[N],rank[N原创 2016-03-11 11:37:43 · 252 阅读 · 0 评论