1 solutions

  • 0
    @ 2026-11-14 10:02:55
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main()
    {
    	cin>>n;
    	string a;cin>>a;
    	for(int i=0;i<a.size();i++){
    		if(a[i]>='A'&&a[i]<='Z'){
    			a[i]+='a'-'A';
    		}
    		else if(a[i]>='a'&&a[i]<='z'){
    			a[i]+='A'-'a';
    		}
    		else{
    			a[i]='*';
    		}
    		cout<<a[i];
    	}
    	return 0;
    }
    

    Information

    ID
    3539
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    5
    Accepted
    4
    Uploaded By