标签:max turn desc style nbsp std def pac printf
#include <algorithm> #include <iostream> #include <cstring> #include <cstdio> #include <vector> #include <cmath> #include <queue> #include <deque> #include <cmath> #include <map> using namespace std; typedef long long ll; const double inf=1e20; const int maxn=2e5+10; const int mod=1e9+7; char a[maxn]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",a); int len=strlen(a); int num=0; for(int i=0;i<len;i++){ if(a[i]>=‘0‘&&a[i]<=‘9‘)num++; } printf("%d\n",num); } return 0; }
标签:max turn desc style nbsp std def pac printf
原文地址:https://www.cnblogs.com/wz-archer/p/12430084.html