题解
2025-09-29 12:35:19
发布于:广东
19阅读
0回复
0点赞
ACGO欢乐赛#57 T3题解
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
for(int i=0;i<s.size();i++)
{
char x=s[i];
if(x=='a'||x=='c'||x=='g'||x=='o'||x=='A'||x=='C'||x=='G'||x=='O')
{
x=toupper(x);
}
else
{
x=tolower(x);
}
cout<<x;
}
return 0;
}
这里空空如也
有帮助,赞一个