Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
61072 | zhangweiran | 配对碱基链 | C++ | Accepted | 0 MS | 252 KB | 319 | 2025-02-21 21:57:18 |
#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; }