Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
48614 | yuzhengxun | 配对碱基链 | C++ | Compile Error | 0 MS | 0 KB | 272 | 2024-06-09 17:44:42 |
#include<bits/stdc++.h> using namespace std; char a[260]; 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]=="G"){ cout<<"C"; }else{ cout<<"G"; } } return 0; }