Premiumlab  

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.

 

 

posted on 2017-04-16 20:15  Premiumlab  阅读(92)  评论(0编辑  收藏  举报