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.
Premiumlab |
|
||
Copyright © 2024 Premiumlab
Powered by .NET 9.0 on Kubernetes |