| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 313882 | 黄浙峰老师 | 【C5-6】大小写翻转 | C++ | Accepted | 100 | 1 MS | 252 KB | 236 | 2025-03-23 11:14:42 |
#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; int l=a.size(); for(int i=0;i<l;i++){ if(a[i]>='a'&&a[i]<='z'){ a[i]-=32; }else { a[i]+=32; } cout<<a[i]; } return 0; }