2 solutions
-
5
#include<bits/stdc++.h> using namespace std; string a,b; int main(){ system("color F1"); cin>>a; int t=a.size(); for(int i=0;i<t;i++){ if(a[i]=='A') b+='T'; else if(a[i]=='T') b+='A'; else if(a[i]=='G') b+='C'; else if(a[i]=='C') b+='G'; } cout<<b<<endl; return 0; }
嘿兄弟怎么简单的题还来看题解?
- 1
Information
- ID
- 621
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 3
- Tags
- # Submissions
- 20
- Accepted
- 20
- Uploaded By