#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main()
{
string line;
bool word;
int length;
while(getline(cin, line))
{
length = line.size();
word = true;
for(int i = 0; i < length; i++)
{
if(isalpha(line[i]) && word)
{
line[i] = toupper(line[i]);
word = false;
}
if(!isalpha(line[i]))
word = true;
}
cout << line << endl;
}
return 0;
}
HDU 2026
最新推荐文章于 2019-10-18 09:48:33 发布