Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5374 A班-高思婕 大小写转换 C++ Accepted 100 0 MS 252 KB 279 2025-02-06 12:50:48

Tests(5/5):


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


Judgement Protocol: