Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
40923 | YOYOLEE-李昕颖 | 将字符串中的小写字母转换成大写字母 | C++ | Compile Error | 0 MS | 0 KB | 230 | 2024-02-18 11:23:57 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[110]; gets(a); for(int i=0;i<strlen(a);i--){ if(a[i]>='a') a[i]-=32; cout<<a[i]; } return 0; } /* 笔记 大小写差32 0:48 A:65