摘要: Broken NecklaceYou 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: 1 2 1 2 r b b r b r r b r... 阅读全文
posted @ 2012-08-17 17:56 _雨 阅读(161) 评论(0) 推荐(0) 编辑