码迷,mamicode.com
首页 > 其他好文 > 详细

Ch.3 Aray and String

时间:2017-04-16 21:37:57      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:app   bsp   example   nbsp   appear   ons   str   ror   cut   

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

标签:app   bsp   example   nbsp   appear   ons   str   ror   cut   

原文地址:http://www.cnblogs.com/prmlab/p/6719782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!