1 条题解

  • 0
    @ 2024-11-24 10:22:34
    #include<bits/stdc++.h>
    using namespace std;
    int main(){  //
    	string s; int ans=0;
    	getline(cin,s);
    	for(int i=0;i<s.length();i++){
    		if(isdigit(s[i]))
    			ans++;
    	}
    	cout<<ans;
    	return 0;
    }
    
    • 1

    信息

    ID
    1791
    时间
    1000ms
    内存
    256MiB
    难度
    (无)
    标签
    (无)
    递交数
    0
    已通过
    0
    上传者