2 条题解

  • 2
    @ 2023-4-13 10:43:51
    • 0
      @ 2024-9-15 14:58:14
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	char s[21];
      	int ans=0;
      	cin>>s;
      	for(int i=0;i<strlen(s);i++){
      		if(s[i]>='0' and s[i]<='9')
      			ans++;
      	}
      	cout<<ans;
      	return 0;
      }
      
      • 1

      蓝桥杯等级考试_14级_ 数字字符的个数

      信息

      ID
      575
      时间
      1000ms
      内存
      256MiB
      难度
      9
      标签
      递交数
      10
      已通过
      6
      上传者