首页 > 代码库 > Ch.3 Aray and String

Ch.3 Aray and String

3-1 scrore 

Here is a string with o and x. The length is between 1 to 80. Calcuate the score. The score of o is the consecutive o appeared so far. The score of x is 0. For example, the score of ooxxoxxooo is 1+2+0+0+1+0+0+1+2+3.

 

 

Ch.3 Aray and String