'commit'
This commit is contained in:
18
TangDou/XiTi/1098.cpp
Normal file
18
TangDou/XiTi/1098.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user