Id
1840
Title
Necklace
Tags
dp
binary search
Brief solution
环状的不好处理,所以通过O(n)枚举分割点将环转换为序列。对于每个序列,二分枚举答案,O(n)验证。
time usage:0.811565