#genocon2021a. [genocon2021_a]Practice 1
[genocon2021_a]Practice 1
Score : points
Problem Statement
is a string consisting of characters A, C, G, T. The length of is .We denote -th character of as s\[i\] (). We define a complementary character for A, C, G, T, respectively, such that the complementary character of A is T, that of T is A, that of C is G, and that of G is C. A complementary character of any character is denoted by . Under these definitions above, the reverse complement sequence of a string is defiend as: R(s\[N\]), R(s\[N-1\]),..., R(s\[2\]), R(s\[1\]). For example, the reverse complement sequence of AACGT is ACGTT.
Output all the reverse complement sequences of input sequences: ,...,.
Constraints
- ,..., are strings consisting of A, C, G, T.
- (the length of is denoted by .)
Input
Input is given from Standard Input in the following format:
Output
Print reverse complement sequences of input sequences. Each sequence should be printed as a single line, and the order of the output sequences must be the same as the order of input sequences.
Sample Input 1
6
CATAGAACGACTATT
TA
GCGGCTTTTTGAAGCGT
TACCTTGATCA
GGCGTGCATAG
T
Sample Output 1
AATAGTCGTTCTATG
TA
ACGCTTCAAAAAGCCGC
TGATCAAGGTA
CTATGCACGCC
A