| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37309 | IKUN(ZHC) | 配对碱基链 | C++ | Accepted | 0 MS | 248 KB | 286 | 2024-01-20 09:59:52 |
#include<bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1; for(int i=0;i<s1.length();i++){ if(s1[i]=='T') s2[i]='A'; else if(s1[i]=='A') s2[i]='T'; else if(s1[i]=='G') s2[i]='C'; else s2[i]='G'; cout<<s2[i]; } return 0; }