Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
44150 | 奚晨瑞 | 配对碱基链 | C++ | Accepted | 0 MS | 248 KB | 314 | 2024-03-29 15:02:43 |
#include<iostream> #include<cstring> using namespace std; char a[256]; int main() { cin>>a; int c=strlen(a); for(int i=0;i<c;i++){ if(a[i]=='A'){ cout<<"T"; } if(a[i]=='T'){ cout<<"A"; } if(a[i]=='G'){ cout<<"C"; } if(a[i]=='C'){ cout<<"G"; } } return 0; }