大哥大姐们稍微看一下第三题👀️

1 条评论

  • @ 2024-7-31 17:46:13

    EZ

    #include <bits/stdc++.h>
    using namespace std;
    typedef long long ll;
    ll t;
    int main(){
        ios::sync_with_stdio(0), cout.tie(0), cin.tie(0);
        cin >> t;
        while(t --){
            string x;cin >> x; 
            if(x[0] >= 'a' && x[0] <= 'z') x[0] -= 32;
            for(int i = 1;i <= x.size();i++)
                if(x[i] >= 'A' && x[i] <= 'Z') x[i] += 32; 
            cout << x << endl;
        }
        return 0;
    }
    

    awa

    • 1