Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
62839 wangyuce 将字符串中的小写字母转换成大写字母 C++ Compile Error 0 MS 0 KB 279 2025-03-17 17:52:13

Tests(0/0):


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


Judgement Protocol: