Broken Necklace(模拟)

 Broken Necklace You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=29:
相关文章
相关标签/搜索