来自蒻枸的一篇题解,不喜勿喷
2024-09-17 20:47:00
发布于:广东
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
char s;
cin>>s;
if(s>='a'&&s<='z'){
int n=s-'a'+'A';
cout<<char(n);
}else if(s>='A'&&s<='Z'){
int m=s-'A'+'a';
cout<<char(m);
}else{
cout<<s;
}
return 0;
}
这里空空如也
有帮助,赞一个