Create 1906.cpp

pull/45/head
Kirigaya Kazuto 2016-12-07 18:59:52 +08:00 committed by GitHub
parent 73451892e9
commit 9116f9ae0d
1 changed files with 19 additions and 0 deletions

19
QUSTOJ/1906.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--)
{
string a;
cin>>a;
int sz=a.size();
int c=0;
for(int i=0;i<sz;i++) if((a.at(i)>='A'&&a.at(i)<='Z')||(a.at(i)>='a'&&a.at(i)<='z')) ++c;
cout<<c<<endl;
}
return 0;
}