Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40901 | YOYOLEE-李昕颖 | 字符串改成大写, 逆序输出 | C++ | Accepted | 1 MS | 244 KB | 183 | 2024-02-18 11:09:39 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[110]; cin>>a; for(int i=strlen(a)-1;i>=0;i--){ if(a[i]>='a') a[i]-=32; cout<<a[i]; } return 0; }