You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
388 B

#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; ++i) {
string s;
cin >> s;
string s1;
//变更大小
s1.resize(s.size() - 1);
transform(s.begin() + 1, s.end(), s1.begin(), ::tolower);
cout << char(toupper(s[0])) << s1 << endl;
}
return 0;
}