#include
#include
using namespace std;
int main(){
string number;
while(getline(cin,number)){
int a=0;
for(int i=0;i
a++;
}
}
cout<<++a<
return 0;
}
#include
#include
#include
using namespace std;
int main() {
string number;
while (getline(cin, number)) {
int a = 0;
for (int i = 0; i < number.size() - 1; i++) {
if (isdigit(number[i]) && !isdigit(number[i+1])) {
a++;
}
}
if (isdigit(number[number.size() - 1])) {
a++;
}
cout << a << endl;
}
return 0;
}
为什么自己不先试试呢!?