Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40925 | zhangchunhong | 将字符串中的小写字母转换成大写字母 | C++ | Accepted | 0 MS | 248 KB | 201 | 2024-02-18 11:24:29 |
#include<iostream> #include<cstring> using namespace std; int main() { char a[110]; gets(a); for(int i=0;i<strlen(a);i++){ if(a[i]<='z'&&a[i]>='a') a[i]-=32; } puts(a); return 0; }