Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40915 | DUANZHIBO | 将字符串中的小写字母转换成大写字母 | C++ | Wrong Answer | 1 MS | 244 KB | 188 | 2024-02-18 11:15:58 |
#include<bits/stdc++.h> using namespace std; int main() { char a[110]; cin>>a; for(int i=0;i<strlen(a);i++){ if(a[i]>='A'&&a[i]<='Z')a[i]+=32; } cout<<a; return 0; }