问题1221--The Other Part of DNA

1221: The Other Part of DNA

时间限制: 1 Sec  内存限制: 128 MB
提交: 467  解决: 248
[提交] [状态] [讨论版] [命题人:]
题目描述
Dellenge is a very warm-hearted person. He likes to help his friend solve problems. One Day, Night Guard have a biological problem. He cannot solve it by himself. So he asked Dellenge for help. But Dellenge’s
Biological is very poor. He can’t solve it too. Now, can you help them to solve the problem? Here is the problem :
We all Know that the information in DNA is stored as a code made up of four chemical bases: adenine (A), guanine (G), cytosine (C), and thymine (T). DNA bases pair up with each other, A with T and C with G, to form units called base pairs.
Now, we give you one part of a DNA sequence, can you tell me another.

输入
The first line is an integer t, which means the number of cases in the data file. Each case will have a single line, that’s DNA sequence which we give you. The length of the sequence is less than 100
输出
For each test case, you have to output another part of the DNA. One case, one line.
样例输入 Copy
2
ATCG
ACAC

样例输出 Copy
TAGC
TGTG
来源/分类