Files
python/TangDou/XiTi/1098.cpp

19 lines
388 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}