2 条题解

  • 1
    @ 2024-1-17 14:38:06
    #include<iostream>
    #include<algorithm>
    using namespace std;
    int main(){	 
    	string s;
    	getline(cin,s);
    	for(int i=0;i<s.length();i++){
    		if(islower(s[i]))
    			cout<<char(toupper(s[i]));
    		else if(isupper(s[i]))
    			cout<<char(tolower(s[i]));
    		else
    			cout<<s[i];
    	}
    	return 0;
    }
    

    信息

    ID
    1121
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    (无)
    递交数
    15
    已通过
    13
    上传者