题库 信息学奥赛题库 题目列表 #include <iostream> #include&nbsp...
填空题
#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
评论
140
点击