2 条题解

  • 1
    @ 2023-6-18 11:11:19

    image

    • 0
      @ 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;
      }
      
      • 1

      信息

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