324567876543567865432456754

big clever  •  1年前


include

using namespace std;

int main() {

char a[28];
int b = 0, c = 0, d = 0, i = 0, sss;
while ((sss = getchar()) != '\n') {
	a[i] = sss;
	if (a[i] >= 65 && a[i] <= 90) {
		b++;
	}
	if (a[i] >= 97 && a[i] <= 122) {
		c++;
	}
	if (a[i] == 32) {
		d++;
	}
	i++;
}
printf("%d %d %d", b, c, d);

}


评论:

请先登录,才能进行评论