Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
79949 sh25_wuyy 配对碱基链 C++ 通过 0 MS 240 KB 435 2026-01-04 14:53:10

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { string a,b; cin>>a; int k=a.length(); for(int i=0;i<k;i++){ char ai=a[i]; if(ai=='A'){ b[i]='T'; }else if(ai=='T'){ b[i]='A'; }else if(ai=='G'){ b[i]='C'; }else if(ai=='C'){ b[i]='G'; } }for(int i=0;i<k;i++){ cout<<b[i]; }return 0; }


测评信息: