1221 : The Other Part of DNA

时间限制:1 Sec 内存限制:128 MiB
提交:117 答案正确:97

提交 状态 讨论区

题目描述

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.

样例输入

复制
2
ATCG
ACAC

样例输出

复制
TAGC
TGTG

提示


			

来源