Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37238 | 奚晨瑞 | 配对碱基链 | C++ | Accepted | 0 MS | 244 KB | 316 | 2024-01-19 17:02:20 |
#include<iostream> #include<cstring> using namespace std; char a[256]; int main() { 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; }