// Topcoder SRM 571 DIV 2 1 FoxAndGame
import java.util.*;
import java.math.*;
public class FoxAndGame {
public static void main(String[] args) {
System.out.println(
//
new FoxAndGame().countStars(
null
));
}
public int countStars(String[] result) {
int st = 0;
for (int i = 0; i < result.length; i++) {
for (int j = 0; j < result[i].length(); j++) {
if (result[i].charAt(j) == 'o')
st++;
}
}
return st;
}
}
No comments:
Post a Comment