Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
17677 | lulu | 字符串改成大写, 逆序输出 | C++ | Accepted | 0 MS | 252 KB | 204 | 2023-05-16 11:19:35 |
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; for(int i=s.length()-1;i>=0;i--){ if(s[i]>='a'&&s[i]<='z'){ s[i]-=32; } cout<<s[i]; } return 0; }