2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=300;int main(){ int sum=0; str…… 题解列表 2023年12月19日 0 点赞 0 评论 216 浏览 评分:0.0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s 摘要:### 这里必须要使用sc.nextLine(),因为字符串中可能包含有空格,导致不能满分 ``` import java.util.Scanner; public class Main {…… 题解列表 2023年08月08日 0 点赞 0 评论 183 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:了解字符串的处理注意事项:只需计算数字的个数,注意字符串结尾的'\0'参考代码:#include<stdio.h>#include<string.h> //处理字符…… 题解列表 2023年08月20日 0 点赞 0 评论 435 浏览 评分:0.0
编写题解 2846: 统计数字字符个数java 摘要:解题思路:注意事项:参考代码:public class Test { public static void main(String[] args) { Scanner scanne…… 题解列表 2023年10月13日 0 点赞 0 评论 345 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月18日 0 点赞 0 评论 613 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ string s…… 题解列表 2024年07月13日 0 点赞 0 评论 390 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:要输入字符0到字符9参考代码:#include <bits/stdc++.h>using namespace std;char s[100000];int main(){ i…… 题解列表 2023年10月28日 0 点赞 0 评论 253 浏览 评分:0.0
统计数字字符个数 摘要:解题思路:注意事项:参考代码:n = input()c = 0b="".join(n)for i in b: if i.isdigit(): c=c+1print(c)…… 题解列表 2023年11月28日 0 点赞 0 评论 575 浏览 评分:0.0
2846: 统计数字字符个数 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e5; char a[N]; int ma…… 题解列表 2024年07月12日 0 点赞 0 评论 358 浏览 评分:0.0
2846:统计字符数组中的数字字符的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[255]; int i,count=0; gets(str); for(i=0;s…… 题解列表 2025年10月30日 1 点赞 0 评论 219 浏览 评分:0.0