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