题库 信息学奥赛题库 题目列表 阅读程序写结果:#include <iostream> #in...
填空题

阅读程序写结果:

#include <iostream>
#include <string>
using namespace std;
int main() {
	string str;
	int i;
	int count;
	count = 0;
	getline( cin, str );
	for ( i = 0; i < str.length(); i++ )
		if ( str[i] >= 'a' && str[i] <= 'z' )
			count++;
	cout << "It has " << count << " lowercases" << endl;
	return(0);
}

输入:NOI2016 will be held in Mian Yang.

输出:_______

题目信息
阅读程序 填空题 2015年 初赛
-
正确率
0
评论
24
点击
QQ
微信