#include #include
using namespace std;
string s;
int main(){ // cin >> s; getline(cin,s); int ans = 0; for (int i=0;i<s.length();i++) if (s[i]>='0'&&s[i]<='9') ans++; cout << ans;
}
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account