1 条题解
-
0
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner scanner = new Scanner(System.in); final String in = scanner.nextLine(); int result = 0; for (int i = 0; i < in.length(); i++) { int index = in.charAt(i); if (index > 57) continue; if (index < 48) continue; result++; } System.out.println(result); } }
- 1
信息
- ID
- 130
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 7
- 标签
- (无)
- 递交数
- 1313
- 已通过
- 279
- 上传者