大虾救命啊!!!翻译一下,大意即可

The beads considered first and second in the text that follows have been marked in the picture.

The configuration in Figure A may be represented as a string of b's and r's, where b represents a blue bead and r represents a red one, as follows: brbrrrbbbrrrrrbrrbbrbbbbrrrrb .

Suppose you are to break the necklace at some point, lay it out straight, and then collect beads of the same color from one end until you reach a bead of a different color, and do the same for the other end (which might not be of the same color as the beads collected before this).

Determine the point where the necklace should be broken so that the most number of beads can be collected.

第1个回答  2007-10-06
第一种珠子跟第二种珠子已经在图中标志好

在图1中的结构, 可以代表为一系列的B和R, B代表蓝色的珠子,而R是红色的, 如brbrrrbbbrrrrrbrrbbrbbbbrrrrb .

假设你在某点上弄断一条项链, 然后放成一条直线, 再从一头开始收集相同颜色的珠子直到你碰到到另一种不同颜色的珠子. 用同样的方法收集另外一端的珠子.(在这边收集到的珠子可能跟另外一边收集到的不同颜色)

最后决定应该在那一点弄断项链才可以收集到最多的珠子!
第2个回答  2007-10-06
下文所指的第一珠和第二珠已在图示中标明。

图A的组合可表示成一串b和r,b代表蓝色,r代表红色。如下:蓝红蓝红红红蓝蓝蓝红红红红红蓝红红蓝蓝红蓝蓝蓝蓝红红红红蓝。

如果你想把项链在某处断开,把它放平捋直,在一端取下同色的珠子直到遇到另一色,同样处理另一端(有可能和另一端不是同一色)。

选好断开的最佳点,就是能让你收取最多珠子的那一断开点。
第3个回答  2007-10-06
该珠认为第一和第二文如下已显影像。

配置中的一个人物,可作为代表的一系列b的和r的,而b代表蓝色珠和r是一个红色的,如下: brbrrrbbbrrrrrbrrbbrbbbbrrrrb 。

假设你是打破项链,在某一点上,它奠定伸直,然后收集珠子的颜色相同,从一端到你达成珠的不同颜色,并做相同的另一端(可能不对同一颜色的珠子收集在此之前) 。

确定地步项链应当打破,使最多的珠子,可以收集。

差不多大意 就在这了``看你自己做什么用了!本回答被提问者采纳
第4个回答  2007-10-06
too difficult, I only gain my two scores
相似回答