Written by Master

大师  •  11天前


include <bits/stdc++.h>

using namespace std; //#define _debug 0

int main() {

string s;
getline(cin, s);
int x = 0, d = 0, k = 0;
for (auto it = s.begin(); it != s.end(); it++) {
	if (islower(*it)) {
		x++;
	} else if (iswupper(*it)) {
		d++;
	} else if (*it == ' ') {
		k++;
	}
}
cout << d << " " << x << " " << k;
return 0;

}


评论:

请先登录,才能进行评论