太简洁啦哒烧叶2023-12-11 20:44:43发布于:广东12阅读0回复0点赞#include <bits/stdc++.h> using namespace std; string s; int cnt =0; int main() { getline(cin,s); for(auto i:s) { if(i>='0' and i<='9') cnt++; } cout<<cnt; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个