A - Double Helix
Editorial
/
/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。
文字 b が入力されます。これは A, C, G, T のいずれかです。塩基 b と対になる塩基を表す文字を出力するプログラムを書いてください。
制約
- b は文字
A,C,G,Tのいずれかである。
入力
入力は以下の形式で標準入力から与えられる。
b
出力
塩基 b と対になる塩基を表す文字を出力せよ。
入力例 1
A
出力例 1
T
入力例 2
G
出力例 2
C
Score : 100 points
Problem Statement
On the Planet AtCoder, there are four types of bases: A, C, G and T. A bonds with T, and C bonds with G.
You are given a letter b as input, which is A, C, G or T. Write a program that prints the letter representing the base that bonds with the base b.
Constraints
- b is one of the letters
A,C,GandT.
Input
Input is given from Standard Input in the following format:
b
Output
Print the letter representing the base that bonds with the base b.
Sample Input 1
A
Sample Output 1
T
Sample Input 2
G
Sample Output 2
C