'commit'
This commit is contained in:
14
TangDou/KaoShi/大小写转换.cpp
Normal file
14
TangDou/KaoShi/大小写转换.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
cin >> s;
|
||||
for (int i = s.size() - 1; i >= 0; i--)
|
||||
if (s[i] >= 'A' && s[i] <= 'Z')
|
||||
cout << s[i] + 32;
|
||||
else
|
||||
cout << s[i];
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user