OI-Codes/配对碱基链.cpp
2023-08-23 21:52:51 +08:00

31 lines
430 B
C++

#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <cmath>
typedef long long l;
typedef double d;
typedef char c;
using namespace std;
int main(){
c a[10000];
cin >>a;
for(int i=0;i<strlen(a);i++){
if(a[i]=='A'){
a[i]='T';
}
else if(a[i]=='T'){
a[i]='A';
}
else if(a[i]=='G'){
a[i]='C';
}
else if(a[i]=='C'){
a[i]='G';
}
}
cout <<a;
return 0;
}