import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
for (int i = 0; i < n; i++) {
char[] ch = input.next().toCharArray();
int flag = 0;
for (char c : ch) {
if(c<=57&&c>=48) flag++;
}
System.out.println(flag);
}
}
}
oj1132: 数字字符统计JAVA
最新推荐文章于 2022-10-03 14:35:30 发布