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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()
for i in range(len(b)):
  if b[i] == 'A':
    b[i] = 'T'
  elif b[i] == 'T':
    b[i] = 'A'
  elif b[i] == 'G':
    b[i] = 'C'
  else:
    b[i] = 'G'
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

Solution code:
import sys
lines = sys.stdin.readlines()

list={"A":"T","T":"A","G":"C","C":"G"}
b = lines
print(list[b])

Submission status: Runtime Error

Solution code:
import sys
#input = sys.stdin.readlines

list={"A":"T","T":"A","G":"C","C":"G"}
b = sys.stdin.readlines()
print(list[b])

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readlines

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

Submission status: Runtime Error

Solution code:
import sys

list={"A":"T","T":"A","G":"C","C":"G"}
b = sys.stdin.readline()
print(list[b])

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b=str(input())
print(b.translate(b.maketrans({'A':'x'},{'C':'y'},{'T':'A'},{'G':'C'},{'x':'C'},{'y':'G'})))

Submission status: Runtime Error

Solution code:
b=input()
print(b.translate(b.maketrans({'A':'x'},{'C':'y'},{'T':'A'},{'G':'C'},{'x':'C'},{'y':'G'})))

Submission status: Runtime Error

Solution code:
b=input()
print(b.translate(b.maketrans('A':'x','C':'y','T':'A','G':'C','x':'C','y':'G')))

Submission status: Runtime Error

Solution code:
b=input()
print(b.translate(str.maketrans('A':'x','C':'y','T':'A','G':'C','x':'C','y':'G')))

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=str(input())
l=[]
for i in range(len(s)):
  if s[i]=='A':
    l.append('T')
  if s[i]=='T':
    l.append('A')
  if s[i]=='G':
    l.append('C')
  if l[i]=='C':
    l.append('G')
print(''.join(l))

Submission status: Runtime Error

Solution code:
b=str(input())
l=[]
for i in range(len(s)):
  if s[i]=='A':
    l.append('T')
  if s[i]=='T':
    l.append('A')
  if s[i]=='G':
    l.append('C')
  if l[i]=='C':
    l.append('G')
print(''.join(l))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if s="G":
  print("C")
if s="C":
  print("G")

Submission status: Runtime Error

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

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
n,q=map(int,input().split())
s=input()
lr=[list(map(int,input().split())) for _ in range(q)]
L=[0,0]
c=0
for i in range(1,n):
	if s[i-1]=='A' and s[i]=='C':
		c += 1
	L.append(c)
print(L)
for l,r in lr:
	print(L[r]-L[l-1])

Submission status: Runtime Error

Solution code:
N=input()
a=ACGT
j=0
for i in range(4):
  if a[i]==N:
  	j=i  
print(a[3-j])

Submission status: Runtime Error

Solution code:
b = input()

a = ['A', 'C', 'G', 'T']
for i in range(len()):
  if a[i] == b:
    print(a[i])
    break

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
b=input()
A,C,T,G=map(str,raw_input().split())
if b=="A":
    print "C"
if b=="C":
    print "A"
if b=="T":
    print "G"
if b=="G":
    print "T"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    dic = {'A':'T', 'T':'A', 'G':'T', 'T':'G'}
    b = input()
    print(dic[b])
    
if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = open(0).read()
B = {'A':'T', 'T':'A', 'C':'G', 'G':'C'}
print(B[A])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b=input()
l=['A','C','G','T']
for i in range(4):
  if b==l[i]:
    print(l[4-i])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,q = map(int,input().split())
s = input()
lr = [list(map(int,input().split())) for i in range(q)]

aclist = [0]
acsum = 0

for i in range(1,n):
    if s[i-1] == "A" and s[i] == "C":
        acsum += 1
    aclist.append(acsum)

for i in range(q):
    ans = aclist [lr[i][1]-1] - aclist [lr[i][0]-2]
    if aclist [lr[i][0]-1] - aclist [lr[i][0]-2] != 0:
        ans -= 1
    print(ans)

Submission status: Runtime Error

Solution code:
n,q = map(int,input().split())
s = input()
lr = [list(map(int,input().split())) for i in range(q)]

aclist = [0]
acsum = 0

for i in range(1,n):
    if s[i-1] == "A" and s[i] == "C":
        acsum += 1
    aclist.append(acsum)

for i in range(q):
    ans = aclist [lr[i][0]-1] - aclist [lr[i][0]-2]
    if aclist [lr[i][0]-1] - aclist [lr[i][0]-2] != 0:
        ans -= 1
    print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ソースコード 

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

Submission status: Runtime Error

Solution code:
b = int(input())

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

Submission status: Runtime Error

Solution code:
import sys, os
import collections

def solve(input_stream):
  table = {
    "A": "T",
    "T": "A",
    "C": "G",
    "G": "C"
  }
  ans = ""
  for i in input_stream.readline():
    ans += table[i]
  return [ans]

if __name__ == "__main__":
    outputs = solve(sys.stdin)
    for line in outputs:
      print(line)

Submission status: Runtime Error

Solution code:
import sys

bond = dict(('A', 'T'), ('T', 'A',), ('C', 'G'), ('G', 'C'))

def main():
    b = sys.stdin.readline().rstrip()
    print(bond[b])

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
print(input().lower().replace("a","T").replace("t","A")replace("c","G")replace("g","C"))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()

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

Submission status: Runtime Error

Solution code:
b = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# ABC122-C
import numpy as np
N, Q = map(int, input().split())
S = input()
lr = [list(map(int, input().split())) for _ in range(Q)]
ind = []
for i in range(N-1):
    if S[i] == "A" and S[i+1] == "C":
        ind.append(i+1)
##print(ind)
ind = np.array(ind)
##print(ind)
for i in range(Q):
    print(np.count_nonzero((lr[i][0] <= ind) & (ind <= lr[i][1] - 1)))

Submission status: Runtime Error

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: Runtime Error

Solution code:
n = input()

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

else:
  pass

Submission status: Runtime Error

Solution code:
n = input()

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

Submission status: Runtime Error

Solution code:
from sys import stdin

n,q = [int(x) for x in stdin.readline().rstrip().split()]
s = stdin.readline().rstrip()
li = [list(map(int,stdin.readline().rstrip().split())) for _ in range(q)]

for i in range(q):
    kotoba = s[li[i][0]-1:li[i][1]]
    kai = kotoba.count("AC")
    print(kai)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()
a = ["A", T"]
c = ["C", "G"]
if b is a[0]:
  print(a[1])
if b is a[1]:
  print(a[0])
if b is c[0]:
  print(c[1])
if b is c[1]:
  print(c[0])

Submission status: Runtime Error

Solution code:
b = input()
a = ["A, T"]
c = ["C", "G"]
if b is a[0]:
  print(a[1])
if b is a[1]:
  print(a[0])
if b is c[0]:
  print(c[1])
if b is c[1]:
  print(c[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,q = map(int,input().split())
s = input()
for i in range(q):
    l,r = map(int,input().split())
    print(s[l-1:r].count("AC"))

Submission status: Runtime Error

Solution code:
import sys
import os
f = open('input.txt','r')
sys.stdin = f

b = input()
out = ""

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

Submission status: Runtime Error

Solution code:
b = input()
out = ""

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
b=input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
print(s.translate(str.maketrans({"A":"T","T":"A","C":"G","G":"C"})

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, Q = map(int, input().split())
S = input()
AC = [0] * N

for i in range(1, len(S)):
    if S[i-1] == 'A' and S[i] == 'C':
        AC[i] = AC[i-1] + 1
    else:
        AC[i] = AC[i-1]


for i in range(Q):
    start, end = map(lambda x:int(x)-1, input().split())
    print(AC[end] - AC[start])

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
N, Q = map(int, input().split())
S = input()
LR = [list(map(int, input().split())) for _ in range(Q)]

t = [0] * (N+1)
for i in range(N):
    t[i+1] = t[i] + (1 if S[i: i+2] == 'AC' else 0)
ans = [t[LR[i][1] - 1] - t[LR[i][0] - 1] for i in range(Q)]    

print(*ans, sep='\n')

Submission status: Runtime Error

Solution code:
n=input()

if n is A:
  print("T")
  
if n is T:
  print("A")
  
if n is C:
  print("G")
  
if n is G:
  print("c")

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n, q = map(int, input().split())
s = list(input())
a_lst = []
for i in range(n-1):
    if s[i] == 'A':
        if s[i+1] == 'C':
            a_lst.append(i)
for i in range(q):
    cnt = 0
    l, r = map(int, input().split())
    for i in range(l-1, r-1):
        if i in a_lst:
            cnt += 1
    print(cnt)

Submission status: Runtime Error

Solution code:
n, q = map(int, input().split())
s = list(input())
a_lst = []
for i in range(n):
    if s[i] == 'A':
        a_lst.append(i)
for i in range(q):
    cnt = 0
    l, r = map(int, input().split())
    for i in range(l-1, r-1):
        if i in a_lst:
            if s[i+1] == 'C':
                cnt += 1
    print(cnt)

Submission status: Runtime Error

Solution code:
b = str(input())
atcg = [["A", "T"],["C", "G"]]

for i in atcg:
  if b in i:
    print(i.remove(b)[0])
    break

Submission status: Runtime Error

Solution code:
b = str(input())
atcg = [["A","T"]["C","G"]]

for i in atcg:
  if b in i:
    print(i.pop(b)[0])
    break

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

Solution code:
b = str(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()
a = ''
for i in range(4):
    if b[i] == 'A':
        a += 'T'
    elif b[i] == 'T':
        a += 'A'
    elif b[i] == 'C':
        a += 'G'
    elif b[i] == 'G':
        a += 'C'
print(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()

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

print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
input=sys.stdin.readline

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

Submission status: Runtime Error

Solution code:
n = int(input())
mod = 10**9+7
 
dp = [[[[0]*4 for _ in range(4)] for _ in range(4)] for _ in range(n+1)]
#長さ0の文字列は1
#0,1,2(A,G,C)に関する制約しかないため
#Sは、TTTSと考えてもよい
dp[0][3][3][3] = 1
 
#swapしてAGCが発生しない文字列:=AGC,ACG,GAC,A?GC,AG?Cを含まない文字列
#A:=0,G:=1,C:=2,T:=3
 
#文字列の文字数
for i in range(n):
    #最後から1文字目
    for j in range(4):
        #最後から2文字目
        for k in range(4):
            #条件に当てはまるものがない場合
            if dp[i][j][k] == 0:
                continue
            #最後から3文字目
            for l in range(4):
                #新たに追加する文字
                for a in range(4):
                    #ダメな5条件をカット
 
                    #AGCの場合
                    if a == 2 and j == 1 and k == 0:continue
                    #GACの場合
                    if a == 2 and j == 0 and k == 1:continue
                    #ACGの場合
                    if a == 1 and j == 2 and k == 0:continue
                    #A?GCの場合
                    if a == 2 and j == 1 and l == 0:continue
                    #AG?Cの場合
                    if a == 2 and k == 1 and l == 0:continue
 
                    #ダメの条件を抜けると、aを足した文字列が作れる
                    dp[i+1][a][j][k] += dp[i][j][k][l]
                    dp[i+1][a][j][k] %= mod
 
ans = 0
for j in range(4):
    for k in range(4):
        for l in range(4):
            #長さnの全通り回収
            ans += dp[n][j][k][l]
            ans %= mod
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()

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

Submission status: Runtime Error

Solution code:
n,q=map(int,input().split())
s=input()
cnt=[0]*n
for i in range(n):
    cnt[i]=cnt[i-1]
    if s[i-1:i+1]=="AC":
        cnt[i]+=1
for i in range(q):
    l,r=map(int,input().split())
    print(cnt[r-1]-cnt[l-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n, q = map(int, input().split(' '))
s = input()
c = [0] * n
for i in range(1, n):
    c[i] += c[i-1]
    if s[i-1:i+1] == 'AC':
        c[i] += 1
for _ in range(q):
    l, r = map(int, input().split(' '))
    print(c[r-1] - c[l-1])

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = int(input())

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

Submission status: Runtime Error

Solution code:
b = int(input())

enkitsui = {'A':'T','C':'G','T':'A','G':'C'}
print(enkitsui.value['b'])

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, Q = map(int, input().split())
S = input()
AClst = []
c = 0

for i in range(N-1):
  if S[i:i+2]=="AC":
    c += 1
  AClst.append(c)
AClst.append(c)

for q in range(Q):
  l, r = map(int, input().split())
  print(AClst[r]-AClst[l])

Submission status: Runtime Error

Solution code:
N, Q = map(int, input().split())
S = input()
t= [0]*(N+1)
for i in range(N):
  t[i+1] = t[i] +(1 if S[i:i+2]=='AC' else 0)
for i in range(Q):
  l, r = map(int, input().split())
  print(t[r-1]-t[l-1])

Submission status: Runtime Error

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: Runtime Error

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac

setrecursionlimit(1000000)


def main():
	n,q = map(int,input().split())
	s = input()
	lr = []
	for i in range(q):
		lr.append(list(map(int,input().split())))
	ac = [0]
	ac.append(1 if s[0]+s[1]=='AC' else 0)
	for i in range(2,n-1):
		if(s[i-1]+s[i]=='AC'):
			ac.append(ac[i-1]+1)
		else:
			ac.append(ac[i-1])
	ac.append(ac[-1])
	for i in lr:
		print(ac[i[1]-1]-ac[i[0]-1])

def zip(a):
	mae = a[0]
	ziparray = [mae]
	for i in range(1,len(a)):
		if(mae != a[i]):
			ziparray.append(a[i])
			mae = a[i]
	return ziparray

def is_prime(n):
	if n < 2: return False

	for k in range(2, int(math.sqrt(n)) + 1):
		if n % k == 0:
			return False

	return True

def list_replace(n,f,t):
	return [t if i==f else i for i in n]

def base_10_to_n(X, n):
	X_dumy = X
	out = ''
	while X_dumy>0:
		out = str(X_dumy%n)+out
		X_dumy = int(X_dumy/n)
	if(out == ''): return '0'
	return out

def gcd(l):
	x = l.pop()
	y = l.pop()
	while(x%y!=0):
		z = x%y
		x = y
		y = z
	l.append(min(x,y))
	return gcd(l) if len(l) > 1 else l[0]

class Queue():
	def __init__(self):
		self.q = deque([])
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.popleft()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class Stack():
	def __init__(self):
		self.q = []
	def push(self,i):
		self.q.append(i)
	def pop(self):
		return self.q.pop()
	def size(self):
		return len(self.q)
	def debug(self):
		return self.q

class graph():
	def __init__(self):
		self.graph = defaultdict(list)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
		self.graph[t].append(f)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
		self.graph[t].remove(f)
	def linked(self,f):
		return self.graph[f]

class dgraph():
	def __init__(self):
		self.graph = defaultdict(set)
	def addnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].append(t)
	def rmnode(self,l):
		f,t = l[0],l[1]
		self.graph[f].remove(t)
	def linked(self,f):
		return self.graph[f]

main()

Submission status: Runtime Error

Solution code:
import re
2. 
3.def a():
4.    a = input()
5.    N, Q = a.split(" ")
6.    S = input()
7.    for i in range(int(Q)):
8.        b = input()
9.        l, r = b.split(" ")
10.        l = int(l)
11.        r = int(r)
12.        acList = re.findall("AC", S[l-1:r])
13.        print(len(acList))
15. 
16.a()

Submission status: Runtime Error

Solution code:
import re

def a():
	b = input()
    l, r = b.split(" ")
    l = int(l)
    r = int(r)
    acList = re.findall("AC", S[l-1:r])
    print(len(acList))

a = input()
N, Q = a.split(" ")
S = input()
for i in range(int(Q)):
  	a()

Submission status: Runtime Error

Solution code:
N,Q=map(int,input().split())
S=input()
li=[]
t=0
for i in range(1,N):
  if S[i-1:i+1]=="AC":
      t+=1
  li.append(t)
for _ in range(Q):
  l,r=map(int,input().split())
  print(li[r-1]-li[l-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
b = input()
for i in b:
  if b[i] == "A":
    b[i] = "T"
  else if b[i] == "T":
    b[i] = "A"
  else if b[i] == "C":
    b[i] = "G"
  else if b[i] == "G":
    b[i] = "C"
print(b)

Submission status: Runtime Error

Solution code:
b = input()
for i in b:
  if b[i] == "A":
    b[i] = "T"
  if b[i] == "T":
    b[i] = "A"
  if b[i] == "C":
    b[i] = "G"
  if b[i] == "G":
    b[i] = "C"
print(b)

Submission status: Runtime Error

Solution code:
b = input()

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