提交时间:2024-11-01 15:52:54

运行 ID: 54979

#include<iostream> #include<cstring> #include<string> using namespace std; int main() { char a[256]; cin>>a; for(int i=0;i<strlen(a);i++){ if(a[i]=='A') cout<<"T"; else if(a[i]=='T') cout<<"A"; else if(a[i]=='C') cout<<"G"; else if(a[i]=='G') cout<<"C"; } return 0; }