22 条题解

  • 0
    @ 2025-9-19 19:54:33

    #include<bits/stdc++.h> using namespace std; string a; int main(){ getline(cin,a); a=" "+a; for(int i=1; i<=a.size()-1; i++){ if(a[i]>=65&&a[i]<=90){ a[i]+=32; } else if(a[i]>=97&&a[i]<=122){ a[i]-=32; } } for(int i=1; i<=a.size()-1; i++){ cout << a[i]; } return 0; }

    信息

    ID
    1092
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    递交数
    925
    已通过
    320
    上传者