有人能看看错在哪里嘛
2025-06-16 20:14:53
发布于:上海
#include<bits/stdc++.h>
using namespace std;
int main(){string s;
getline(cin,s);
int x=s.size();
for(int i=0;i<x;i++){
if(s[i]=='A'){s[i]='T';}
else if(s[i]=='G'){s[i]='C';}
else if(s[i]=='T'){s[i]='A'; }
else if(s[i]=='C'){s[i]='G';}
}
cout<<s;
return 0;
}
有人能看看错在哪里嘛
假设输入为AETCGTCATGATCTAGCTAGGAATATATA
求输出
全部评论 3
得是第一个哦
昨天 来自 上海
0发作品标题
、昨天 来自 上海
0谁答对我就给谁的作品点赞
昨天 来自 上海
0
有帮助,赞一个