Problem:


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, G and T.

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



Sample input:
A


Sample output:
T

Submission status: Accepted

Solution code:
n=input()
c=["A","T","G","C"]
a=["T","A","C","G"]
for i in range(4):
    if n==c[i]:
        print(a[i])
        break

Submission status: Accepted

Solution code:
a = input()
if a == "A":
  print("T")
elif a == "T":
  print("A")
elif a == "G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
a = input()
if a == 'A':
  print('T')
elif a == 'T':
  print('A')
elif a == 'C':
  print('G')
else:
  print('C')

Submission status: Accepted

Solution code:
b = input ()

if b == "A":
    print ("T")

elif b == "C":
    print ("G")

elif b == "T":
    print ("A")

elif b == "G":
    print ("C")

Submission status: Accepted

Solution code:
b=input()
if b=='A':
    print('T')
elif b=='C':
    print('G')
elif b=='T':
    print('A')
elif b=='G':
    print('C')

Submission status: Accepted

Solution code:
char = input()

answer = ''
if char == 'A':
    answer = 'T'
elif char == 'C':
    answer = 'G'
elif char == 'G':
    answer = 'C'
else:
    answer = 'A'

print(answer)

Submission status: Accepted

Solution code:
b=input()

if b=="A":
    ans="T"

elif b=="T":
    ans="A"
    
elif b=="C":
    ans="G"
    
else:
    ans="C"
    
print(ans)

Submission status: Accepted

Solution code:
# author:  Taichicchi
# created: 09.09.2020 23:20:32

import sys

b = input()

d = {
    "A" : "T",
    "T" : "A",
    "G" : "C",
    "C" : "G",
}

print(d[b])

Submission status: Accepted

Solution code:
b=input()
if b=="A":
  print("T")
elif b=="T":
  print("A")
elif b=="C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b = input()

print('A') if b == 'T' else print('T') if b == 'A' else print('C') if b == 'G' else print('G')

Submission status: Accepted

Solution code:
b = input()
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
b=input()
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
def main():
    b = input()
    if   b == "A": print("T")
    elif b == "T": print("A")
    elif b == "C": print("G")
    else:          print("C")

main()

Submission status: Accepted

Solution code:
b = input()
ans = {
    "A": "T",
    "T": "A",
    "C": "G",
    "G": "C"
}
print(ans[b])

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
d = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(d[input()])

Submission status: Accepted

Solution code:
b = input()
if  b == "A" :
    print("T")
elif b == "T" :
    print("A")
elif b == "G" :
    print("C")
elif b == "C" :
    print("G")

Submission status: Accepted

Solution code:
print({"A":"T","T":"A","C":"G","G":"C"}[input()])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "C" :
    print("G")
elif b == "G":
    print("C")
elif b == "T":
    print("A")

Submission status: Accepted

Solution code:
b = input()

dic = {"A": "T", "T": "A", "C": "G", "G": "C"}

print(dic[b])

Submission status: Accepted

Solution code:
print("ATCG"["TAGC".index(input())])

Submission status: Accepted

Solution code:
M = {'A':'T', 'T': 'A', 'C':'G', 'G':'C'}
print(M[input()])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
if b == "T":
    print("A")
if b == "C":
    print("G")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
d = {"A":"T", "T":"A", "G":"C", "C":"G"}
print(d[input()])

Submission status: Accepted

Solution code:
b = input()
dh = {'A': 'T', 'C': 'G', 'T': 'A', 'G': 'C'}

print(dh[b])

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    ans = 'T'
elif b == 'C':
    ans = 'G'
elif b == 'G':
    ans = 'C'
elif b == 'T':
    ans = 'A'

print(ans)

Submission status: Accepted

Solution code:
# A - Double Helix

b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'G':
    print('C')
elif b == 'C':
    print('G')

Submission status: Accepted

Solution code:
b = input()

s0 = ['A', 'T', 'C', 'G']
s1 = ['T', 'A', 'G', 'C']

for i, s in enumerate(s0):
    if s == b:
        print(s1[i])
        break

Submission status: Accepted

Solution code:
b = input()
a = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(a[b])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:

n=str(input())
if n=='A':
    print('T')
elif n=='T':
    print('A')
elif n=='G':
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')

elif b == ('G'):
    print('C')

Submission status: Accepted

Solution code:
# 4種類の塩基 A,C,G,T が存在し、 A と T 、 C と G がそれぞれ対
# A,C,T,G いずれかの文字 b が入力される
# 塩基 b と対になる塩基をあらわす文字を出力

b = input()

if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
a=input()
if a=='A':print('T')
elif a=='T':print('A')
elif a=='C':print('G')
else:print('C')

Submission status: Accepted

Solution code:
b = input()
if b =="A":
    print("T")
elif b =="T":
    print("A")
elif b =="C":
    print("G")
elif b =="G":
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b=="A":
    print("T")
if b=="T":
    print("A")
if b=="C":
    print("G")
if b=="G":
    print("C")

Submission status: Accepted

Solution code:
d = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
print(d[input()])

Submission status: Accepted

Solution code:
L = ["A","T","A","G","C","G"]
print(L[L.index(input())+1])

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "C":
  print("G")
elif b == "G":
  print("C")

Submission status: Accepted

Solution code:
DNA_b = input()

if DNA_b == 'A':
    print('T')
elif DNA_b == 'T':
    print('A')
elif DNA_b == "C":
    print('G')
elif DNA_b == "G":
    print('C')

Submission status: Accepted

Solution code:
# 入力
b = input()

# 処理&出力
if b == 'A':
    print('T')
elif b == 'T':
    print('A')

if b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print("T")

elif b == 'T':
    print("A")

elif b == 'C':
    print("G")

elif b == 'G':
    print("C")

Submission status: Accepted

Solution code:
b=input()

if b=='A' :
    print('T')
elif b=='G':
    print('C')
elif b=='T':
    print('A')
elif b=='C':
    print('G')

Submission status: Accepted

Solution code:
b = input()

if b =='A':
    print('T')

elif b == 'T':
    print('A')

elif b == 'C':
    print('G')

elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
# A and T , C and G

b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
    
# 大文字で入力ならこれでよいけど、小文字だったらどうするのかなあ

Submission status: Accepted

Solution code:
#122A

#1.入力をちゃんと受け取ること
b=input()
#2.結果を出力する
if b=='A' :
    print('T')
elif b=='G':
    print('C')
elif b=='T':
    print('A')
elif b=='C':
    print('G')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
else:
    print("error")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
if b == "C":
    print("G")
if b == "T":
    print("A")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
b = str(input())

if b == 'A':
    print('T')
if b == 'T':
    print('A')

if b == 'C':
    print('G')
if b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
else:
    print("G")

Submission status: Accepted

Solution code:
b =  input ()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
elif b == "C":
    print("G")
else:
    print("error")

Submission status: Accepted

Solution code:
# A,Double Helix
# AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。
# 文字 bが入力されます。これは A, C, G, T のいずれかです。塩基bと対になる塩基を表す文字を出力するプログラムを書いてください。

# bは文字 A, C, G, T のいずれかである。

b = input()

# 塩基bと対になる塩基を表す文字を出力せよ。

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A") 
elif b == "C":
    print("G") 
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
if b == "T":
    print("A")
if b == "C":
    print("G")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
a = input()
print("A" if a =="T" else "T" if a =="A" else "G" if a =="C" else "C")

Submission status: Accepted

Solution code:
b=input()
print("A" if b=="T" else "T" if b=="A" else "G" if b=="C" else "C")

Submission status: Accepted

Solution code:
def main():
    b = input()

    if b == "A":
        print("T")
    elif b == "C":
        print("G")
    elif b == "G":
        print("C")
    elif b == "T":
        print("A")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
# 122A

# 文字列b：標準入力
# bはA, C, G, T のいずれか
b = input()

# A と T、C と G がそれぞれ対
# bと対になる塩基を表す文字を出力する

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == "C":
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
# 塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対

b = input()

if b == ('A'):
    print('T')

if b == ('C'):
    print('G')

if b == ('T'):
    print('A')

if b == ('G'):
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == ('A'):
    print('T')

elif b == ('C'):
    print('G')

elif b == ('G'):
    print('C')

elif b == ('T'):
    print('A')

else:
    print('入力に誤りがあります。A,C,G,Tのいずれかを入力して下さい。')

Submission status: Accepted

Solution code:
print("ATCG"["TAGC".find(input())])

Submission status: Accepted

Solution code:
d={"A":"T","T":"A","C":"G","G":"C"}
print(d[input()])

Submission status: Accepted

Solution code:
b = input()
print("A" if b=="T" else "C" if b=="G" else "T" if b=="A" else "G")

Submission status: Accepted

Solution code:
b = input()

if b == ('A'):
    print('T')
elif b == ('C'):
    print('G')
elif b == ('G'):
    print('C')
elif b == ('T'):
    print('A')
else:
    print('入力に誤りがあります。A,C,G,Tのいずれかを入力してください。')

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "T":
    print("A")
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    answer = ('T')
elif b == 'C':
    answer = ('G')
elif b == 'G':
    answer = ('C')
elif b == 'T':
    answer = ('A')

print(answer)

Submission status: Accepted

Solution code:
b=input()

if b=='A':
    print('T')
elif b=='C':
    print('G')
elif b=='G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
S=input()
if S=="A":
  print("T")
elif S=="T":
  print("A")
elif S=="C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b = str(input())

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
print('ACGT'['TGCA'.index(input())])

Submission status: Accepted

Solution code:
data = input()

if data == 'A':
    print('T')
elif data == 'T':
    print('A')
elif data == 'C':
    print('G')
elif data == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
else:
    print("You made a mistake.")

Submission status: Accepted

Solution code:
# AとT、CとGが対
caracter = input()

if caracter == 'A':
    print('T')

if caracter == 'T':
    print('A')

if caracter == 'C':
    print('G')

if caracter == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    answer = 'T'
elif b == 'T':
    answer = 'A'
elif b == 'C':
    answer = 'G'
elif b == 'G':
    answer = 'C'
else:
    answer = '入力間違い【A】【T】【C】【G】を入力'

print(answer)

Submission status: Accepted

Solution code:
#AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。
#文字 b が入力されます。これは A, C, G, T のいずれかです。塩基 b と対になる塩基を表す文字を出力するプログラムを書いてください。

b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = str(input())

if b == "A":
    print("T")
if b == "T":
    print("A")
if b == "C":
    print("G")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
inp=input()
if inp=="A":
    print("T")
if inp=="T":
    print("A")
if inp=="G":
    print("C")
if inp=="C":
    print("G")

Submission status: Accepted

Solution code:
# A - Double Helix

# A,C,G,Tのいずれかの入力に対し、対となる文字を返す
# A=T, C=G


b = str(input())

if b == 'A':
    print('T')

elif b == 'T':
    print('A')

elif b == 'C':
    print('G')

elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
# A - Double Helix
# https://atcoder.jp/contests/abc122/tasks/abc122_a

b = input()

if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
elif b == 'T':
    print('A')

Submission status: Accepted

Solution code:
b=str(input())
E={"A":"T","T":"A","C":"G","G":"C"}
print(E[b])

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "G":
    print("C")
else:
    print("G")

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')

elif b == 'T':
    print('A')

elif b == 'C':
    print('G')

elif b == 'G':
    print('C')

else:
    print('error!')

Submission status: Accepted

Solution code:
b=input()
dict={"A":"T","C":"G","G":"C","T":"A"}
print(dict[b])

Submission status: Accepted

Solution code:
# 122
# 対の値を出力する　A と T、C と G
# 入力値　A, C, G, T

# 入力
b = str(input())

# 処理
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')

if b == 'T':
    print('A')

if b == 'C':
    print('G')

if b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b=input()
if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='C':
    print('G')
elif b=='G':
    print('C')

Submission status: Accepted

Solution code:
b=input()

#AとTが対になる

if b == 'A':
    print('T')
elif b == 'T':
    print('A')

#GとCが対になる

elif b == 'G':
    print('C')
elif b == 'C':
    print('G')

Submission status: Accepted

Solution code:
#selectcaseは辞書型で可能

print({'A' : 'T', 'T' : 'A', 'C' : 'G', 'G' : 'C'}[input()])



# 
# #ifの連続でも可能
# kigou = input()
# 
# if kigou == 'A':
#     print('T')
# elif kigou == 'T':
#     print('A')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")

elif b == "T":
    print("A")

elif b == "C":
    print("G")

elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b=input()

if b=='A':
    print('T')

elif b=='T':
    print('A')

elif b =='C':
    print('G')

elif b=='G':
    print('C')

Submission status: Accepted

Solution code:
b = input()

print({'A':'T', 'T':'A', 'G':'C', 'C':'G'}[b])

Submission status: Accepted

Solution code:

b=input()

if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='C':
    print('G')
elif b=='G':
    print('C')

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
b = input()

if b ==("A"):
    print("T")
elif b ==("C"):
    print("G")
elif b ==("G"):
    print("C")
elif b ==("T"):
    print("A")

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
# A - Double Helix

b = input()


if b == 'A':
    print('T')
elif b == 'G':
    print('C')
elif b == 'T':
     print('A')
elif b == 'C':
    print('G')

Submission status: Accepted

Solution code:
b = input()

if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
elif b == "C":
  print("G")

Submission status: Accepted

Solution code:
b = input()
dic = {'A':'T','G':'C','T':'A','C':'G'}
print(dic[b])

Submission status: Accepted

Solution code:
base  = {'A':'T', 'C':'G', 'G':'C', 'T':'A'}
print(base.get(input()))

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')

elif b == 'T':
    print('A')

elif b == 'G':
    print('C')

elif b == 'C':
    print('G')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print("T")

elif b == 'T':
    print("A")

elif b == 'C':
    print("G")

elif b == 'G':
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')

elif b == 'T':
    print('A')

if b == 'C':
    print('G')

elif b == 'G':
    print('C')

Submission status: Accepted

Solution code:
#   AtCoder abc122 a

#   入力
b = input()

#   判定
if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
else:
    print("A")

Submission status: Accepted

Solution code:
b=input().upper()

if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
# 四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対
# 文字 b が入力され A, C, G, T のいずれか
# 塩基 b と対になる塩基を表す文字を出力

b = input()

if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
# A - Double Helix
b = input()
if b =='A':
    print('T')
elif b =='T':
    print('A')
elif b =='C':
    print('G')
elif b =='G':
    print('C')

Submission status: Accepted

Solution code:
# AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。
# 文字bが入力されます。これは A, C, G, T のいずれかです。
# 塩基bと対になる塩基を表す文字を出力するプログラムを書いてください。

b = input()

if b =='A' :
   print('T')
elif  b =='C' :
   print('G')
elif b =='G' :
   print('C')
elif b =='T' :
   print('A')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()

if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b=input()
if b=='A':
  print('T')
elif b=='T':
  print('A')
elif b=='G':
  print('C')
else:
  print('G')

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'G':
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
print({'A':'T', 'T':'A', 'C':'G', 'G':'C'}[input()])

Submission status: Accepted

Solution code:
# 122a https://atcoder.jp/contests/abc122/tasks/abc122_a

# 入力
b = input()

# 処理
if b == 'A':
    answer = 'T'
elif b == 'T':
    answer = 'A'
elif b == 'C':
    answer = 'G'
elif b == 'G':
    answer = 'C'
else:
    answer = '入力値は　A, C, G, T　のいずれかを選択'

# 出力
print(answer)

Submission status: Accepted

Solution code:
a=input()
if a=="G":
  print("C")
if a=="C":
  print("G")
if a=="A":
  print("T")
if a=="T":
  print("A")

Submission status: Accepted

Solution code:
S = input()
print_list = ['A', 'C', 'G', 'T']
value = print_list.index(S)
print(print_list[3-value])

Submission status: Accepted

Solution code:
#入力内容の取得
b = input()

#入力内容に対応するアルファベットを出力
if b == "A":
    print("T")
elif b == "C":
    print("G")
elif b == "G":
    print("C")
elif b ==("T"):
    print("A")

Submission status: Accepted

Solution code:
# AtCoder 星には四種類の塩基 A, C, G, T が存在し、A と T、C と G がそれぞれ対になります。
# 文字 bが入力されます。これは A, C, G, T のいずれかです。塩基
# b と対になる塩基を表す文字を出力するプログラムを書いてください。

# 標準入力から 文字列 b を取得する
b = input()

# 塩基 b と対になる塩基を探して出力する
output_srt = 'None'
if b == 'A':
    output_srt = 'T'
elif b == 'C':
    output_srt = 'G'
elif b == 'G':
    output_srt = 'C'
elif b == 'T':
    output_srt = 'A'

print(output_srt)

Submission status: Accepted

Solution code:
b = input()


if b == 'A':
    print('T')
if b == 'T':
    print('A')

if b == 'G':
    print('C')
if b == 'C':
    print('G')

Submission status: Accepted

Solution code:
b = input()
bp_dict = {'A': 'T', 'C': 'G'}
if b == 'A':
    print('T')
if b == 'T':
    print('A')
if b == 'C':
    print('G')
if b == 'G':
    print('C')

Submission status: Accepted

Solution code:
S = input()

if S == 'A':
    print('T')
elif S == 'T':
    print('A')
elif S == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
# 122A
# 対の値を出力する　A と T、C と G
# 入力値　A, C, G, T

# 入力
b = str(input())

# 処理
if b == "A":
    print("T")
elif b == "T":
    print("A")
elif b == "C":
    print("G")
elif b == "G":
    print("C")

Submission status: Accepted

Solution code:
b=input()

if b=='A':
    print('T')
elif b=='T':
    print('A')
elif b=='C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A,T,C,G のうちどれかを入力してください。')

Submission status: Accepted

Solution code:
# 122a

b = input() # 塩基bを入力

if b == 'A':
    pair_base = 'T'
elif b == 'T':
    pair_base = 'A'
elif b == 'C':
    pair_base = 'G'
elif b == 'G':
    pair_base = 'C'

print(pair_base)

Submission status: Accepted

Solution code:
b = str(input())
if b == 'A':
  print('T')
elif b == 'T':
  print('A')
elif b == 'C':
  print('G')
else:
  print('C')

Submission status: Accepted

Solution code:
b = str(input())
if b=="A":
  print("T")
elif b=="T":
  print("A")
elif b=="G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
# 入力
b = input('')

# bと対になる塩基を表す文字を出力する
if b == str('A'):
    print('T')
elif b == str('T'):
    print('A')
elif b == str('C'):
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
b = input()
if(b=='A'):
    print('T')
elif(b=='T'):
    print('A')
elif(b=='G'):
    print('C')
else:
    print('G')

Submission status: Accepted

Solution code:
b = input()

if b == "A":
    print("T")
if b == "T":
    print("A")
if b == "C":
    print("G")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
s=input()
if(s=='A'):
    print("T")
elif(s=='T'):
    print('A')
elif(s=='C'):
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
    print('T')
if b == 'T':
    print('A')
if b == 'C':
    print('G')
if b == 'G':
    print('C')

Submission status: Accepted

Solution code:
b = input()
if b == "A":
    print("T")
if b == "T":
    print("A")
if b == "C":
    print("G")
if b == "G":
    print("C")

Submission status: Accepted

Solution code:
# bはA,T,C,Gのどれか
b=input()

if b=='A':
    print('T')

if b=='T':
    print('A')

if b=='C':
    print('G')

if b=='G':
    print('C')

Submission status: Accepted

Solution code:
#塩基を入力
base = input()
"AとTのペアで出力、CとGのペアで出力"
if base == "A":
    print("T")
elif base == "T":
    print("A")
elif base == "C":
    print("G")
#AでもTでもCでもなければGなのでCを出力
else:
    print("C")

Submission status: Accepted

Solution code:
b = input()
if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
elif b ==('T'):
    print('A')

Submission status: Accepted

Solution code:
b=input()

#Alphabetの互換性を関連付ける
#片方だけでは正しく出力しない
a={"A":"T", "T":"A", "C":"G", "G":"C"}

#abが逆ではErrorが発生する
print(a[b])

Submission status: Accepted

Solution code:
b = input()

if b == 'A':
    print('T')

elif b == 'T':
    print('A')

elif b== 'C':
    print('G')

else:
    print('C')

Submission status: Accepted

Solution code:
b = "ATAGCG"
print(b[1+b.index(input())])

Submission status: Accepted

Solution code:
b=input()
print('A' if b=='T' else 'T' if b=='A' else 'G' if b=='C' else 'C')

Submission status: Accepted

Solution code:
b = input().rstrip()
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
# A - Double Helix
# A：アデニン T：チミン G：グアニン C：シトシン
# 対になる組み合わせ  A-T  G-C

# 標準入力
base = input()
# print(base)

# 条件分岐し、結果を answer に代入
if base == 'A':
    # print('T')
    answer = 'T'
elif base == 'T':
    # print('A')
    answer = 'A'
elif base == 'G':
    # print('C')
    answer = 'C'
elif base == 'C':
    # print('G')
    answer = 'G'

# 結果の出力
print(answer)

Submission status: Accepted

Solution code:
# A - Double Helix
# A：アデニン T：チミン G：グアニン C：シトシン
# 対になる組み合わせ  A-T  G-C

# 標準入力
base = input()
# print(base)

# 条件分岐
if base == 'A':
    print('T')
elif base == 'T':
    print('A')
elif base == 'G':
    print('C')
elif base == 'C':
    print('G')

Submission status: Accepted

Solution code:
# 122A

b = input()

if b == 'A':
    print('T')
elif b == 'C':
    print('G')
elif b == 'G':
    print('C')
else:
    print('A')

Submission status: Accepted

Solution code:
star_base = input()

if star_base == 'A':
    print('T')
elif star_base == 'T':
    print('A')
elif star_base == 'C':
    print('G')
elif star_base == 'G':
    print('C')

Submission status: Accepted

Solution code:
b=input()
if b=="A":
    print("T")
if b=="C":
    print("G")
if b=="G":
    print("C")
if b=="T":
    print("A")

Submission status: Accepted

Solution code:
b=input()
if b=="A":
    print("T")
if b=="C":
    print("G")
if b=="T":
    print("A")
if b=="G":
    print("C")

Submission status: Accepted

Solution code:
base = input('')

if base == 'A':
    print('T')
elif base == 'T':
    print('A')
elif base == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    b = readline().strip()
    
    print(b.translate(str.maketrans('ACGT','TGCA')))
    
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
b = input()
if b == 'A' :
    print('T')
elif b == 'T' :
    print('A')
elif b == 'C' :
    print('G')
else :
    print('C')

Submission status: Accepted

Solution code:
bases = {'A':'T','T':'A','C':'G','G':'C'}
print(bases[input()])

Submission status: Accepted

Solution code:
s = input()
d = {"A":"T", "T":"A", "G":"C", "C":"G"}
print(d[s])

Submission status: Accepted

Solution code:
b = str(input())
if b == 'A':
    print('T')
elif b == 'T':
    print('A')
elif b == 'C':
    print('G')
else:
    print('C')

Submission status: Accepted

Solution code:
b = input ()
if b == 'A':
  print ('T')
elif b == 'T':
  print ('A')
elif b == 'G':
  print ('C')
else:
  print ('G')

Submission status: Accepted

Solution code:
b=input()
L=['A','C','G','T']
c=L.index(b)
print(L[3-c])

Submission status: Accepted

Solution code:
s = input()
if s == "A":
  print("T")
elif s == "T":
  print("A")
elif s == "C":
  print("G")
else:
  print("C")

Submission status: Accepted

Solution code:
b = input()
dic = {"A":"T", "T":"A", "C":"G", "G":"C"}
print(dic[b])

Submission status: Accepted

Solution code:
b=input()
IN=['A','C','G','T']
OUT=['T','G','C','A']

for i in range(4):
    if b==IN[i]:
        print(OUT[i])
        break

Submission status: Accepted

Solution code:
b = input()
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")

Submission status: Accepted

Solution code:
def readinput():
    b=input()
    return b

def main(b):
    dic={'A':'T', 'C':'G', 'T':'A', 'G':'C'}
    return dic[b]

if __name__=='__main__':
    b=readinput()
    ans=main(b)
    print(ans)

Submission status: Accepted

Solution code:
s = input()
if s =='A':print('T')
elif s == 'T': print('A')
elif s == 'C': print('G')
else: print('C')

Submission status: Accepted

Solution code:
b=str(input())
if b=="A":
    print("T")
elif b=="T":
    print("A")
elif b=="C":
    print("G")
else:
    print("C")

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [input() for _ in range(n)]

s = input()

h = {"A":"T","C":"G","G":"C","T":"A"}

print(h[s])

Submission status: Accepted

Solution code:
b = str(input())
dic = {'A':'T', 'C':'G', 'G':'C', 'T':'A'}
bz = dic[b]
print(bz)

Submission status: Accepted

Solution code:
b = input()
res = ''

for s in b:
    if s == 'A':
        res += 'T'
    elif s == 'T':
        res += 'A'
    elif s == 'C':
        res += 'G'
    elif s == 'G':
        res += 'C'

print(res)

Submission status: Accepted

Solution code:
X = input()
if X == "A":
  	print("T")
elif X == "T":
  	print("A")
elif X == "C":
  	print("G")
elif X == "G":
	print("C")

Submission status: Accepted

Solution code:

def main():
    s = input()
    enki = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
    print(enki[s])
       

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
dict={"A":"T","T":"A","G":"C","C":"G"}
print(dict[input()])

Submission status: Accepted

Solution code:
b=input()
if b=='A':
  print('T')
elif b=='T':
  print('A')
elif b=='C':
  print('G')
else:
  print('C')

Submission status: Accepted

Solution code:
a = {"A":"T", "T":"A", "C":"G", "G": "C"}
print(a[input()])