目录
牛客_BC149 简写单词(简单模拟)
解析代码
牛客_BC149 简写单词(简单模拟)
简写单词_牛客题霸_牛客网
解析代码
简单模拟题,主要是处理一下输入的问题。
#include <iostream>
#include <cctype>
using namespace std;int main()
{string str;while (cin >> str){if (str[0] >= 'a' && str[0] <= 'z'){str[0] -= 32;}cout << str[0];}return 0;
}