Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
40938 YOYOLEE-李昕颖 将字符串中的小写字母转换成大写字母 C++ Wrong Answer 1 MS 240 KB 192 2024-02-18 11:26:41

Tests(0/3):


#include<bits/stdc++.h> using namespace std; int main(){ char a[110]; for(int i=0;i<strlen(a);i++){ cin>>a[i]; if(a[i]>='a'&&a[i]<='z') a[i]-=32; cout<<a[i]; } return 0; }


Judgement Protocol: