mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1906.cpp
This commit is contained in:
parent
73451892e9
commit
9116f9ae0d
19
QUSTOJ/1906.cpp
Normal file
19
QUSTOJ/1906.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user