TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = input()
B = input()

choices = "123"
answer = [x for x in choices if int(x) != A and int(x) != B][0]

print(int(answer))

A = input()
B = input()

choice = "123"

print(int([x for x in choice if int(x) != A or int(x) != B][0]))

number_of_guests = input().split()

A = int(number_of_guests[0])
B = int(number_of_guests[1])


A_divisors = []
x = 2
while True:
    if (A % x == 0):
        A /= x
        A_divisors.append(x)
    else:
        x += 1

    if (A <= 1):
        break

y = 2
B_divisors = []
while True:
    if (B % y == 0):
        B /= y
        B_divisors.append(y)
    else:
        y += 1

    if (B <= 1):
        break

A_only = [x for x in A_divisors if (x not in B_divisors)]
B_only = [y for y in B_divisors if (y not in A_divisors)]

common_divisors = []
for z in (A_divisors + B_divisors):
    if z in A_divisors and z in B_divisors:
        if (A_divisors.count(z) >= B_divisors.count(z)):
            common_divisors.append(z**A_divisors.count(z))
        else:
            common_divisors.append(z**B_divisors.count(z))

        A_divisors = list(filter(lambda x: x != z, A_divisors))
        B_divisors = list(filter(lambda x: x != z, B_divisors))


result = 1
for x in A_only + B_only + common_divisors:
    result *= x

print(result)


A = input()
B = input()
 
choices = "123"
answer = [x for x in choices if x != A and x != B]

print(int(answer[0]))

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
prirt(int(input()^int(input()))

prirt(int(input())^int(input()))


print(int(input())^int(input()))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1

    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)
      #print(ne)
  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)


N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v]
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1

    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)

  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)

N, u, v = list(map(int, input().split()))
graph = [[] for _ in range(N+1)]
for i in range(N-1):
  A, B = list(map(int, input().split()))
  graph[A].append(B)
  graph[B].append(A)
#print(graph)

def dfs(v):
  dist = [-1] * (N+1)
  dist[v] = 0
  stack = [v
 # print(dist)
  while stack:
    now = stack.pop()
    dw = dist[now] + 1

    for ne in graph[now]:
      if dist[ne] >= 0:
        continue
      dist[ne] = dw
      stack.append(ne)
      #print(ne)
  return dist

Taka = dfs(u)
Ao = dfs(v)

ans = 0
for t, a in zip(Takahashi[1:], Aoki[1:]):
  if t < a:
    ans = max(ans, a-1)

print(ans)

A = int(input())
B = int(input())

print(6-A-B)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a, b = map(int, input().split())
if a == 1:
    if b == 2:
        print("3")
    else:
        print("2")
if a == 2:
    if b == 1:
        print("3")
    else:
        print("1")
if a == 3:
    if b == 2:
        print("1")
    else:
        print("2")

a = int(input())
b = int(input())
if a == 1:
    if b == 2:
        print("3")
    else:
        print("2")
if a == 2:
    if b == 1:
        print("3")
    else:
        print("1")
if a == 3:
    if b == 2:
        print("1")
    else:
        print("2")

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
code1 = input()
code2 = input()

if code1==1:
  if code2==2:
    print(3)
  else:
    print(2)
elif code1==2:
  if code2==3:
    print(1)
  else:
    print(3)
else:
  if code2==1:
    print(2)
  else:
    print(1)
    

code1 = int(input())
code2 = int(input())
if code1==1 and code2==2:
  print(3)
elif code1==1 and code2==3:
  print(2)
elif code1==2 and code2==3:
  print(1)
elif code1==2 and code2==1:
  print(3)
elif code1==3 and code2==1:
  print(2)
else:
  print(1)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import sys

A = input()
B = input()

if A = 1:
    if B = 2:
        print(3)
    else:
        print(2)
elif A = 2:
    if B = 1:
        print(3)
    else:
        print(1)
elif A = 3:
    if B = 1:
        print(2)
    else:
        print(1)


A = input()
B = input()

if A = 1:
    if B = 2:
        print(3)
    else:
        print(2)
elif A = 2:
    if B = 1:
        print(3)
    else:
        print(1)
elif A = 3:
    if B = 1:
        print(2)
    else:
        print(1)


import sys

A = input()
B = input()

if A == '1':
    if B == '2':
        print('3')
    else:
        print('2')
elif A == '2':
    if B == '1':
        print('3')
    else:
        print('1')
elif A == '3':
    if B == '1':
        print('2')
    else:
        print('1')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
s=[1,2,3];s.pop(int(input());s.pop(int(input());print(s[0])

print(6-int(input())-int(input()))

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if a==1:
    print(2)
  else:
    print(1)

a=int(input())
b=int(input())
if a=1:
  if b=2:
    print(3)
  else:
    print(2)
elif a=2:
  if b=1:
    print(3)
  else:
    print(1)
else:
  if a=1:
    print(2)
  else:
    print(1)

a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if b==1:
    print(2)
  else:
    print(1)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())
x = [1,2,3]
del x[a]
del x[b]
print(x[0])

a = int(input())
b = int(input())
if a == 1:
  if b == 2:
    print(3)
  else:
    print(2)
elif a == 2:
  if b == 1:
    print(3)
  else:
    print(1)
elif a == 3:
  if b == 1:
    print(2)
  else:
    print(1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a_set = {}
a_set.add(int(input()))
a_set.add(int(input()))

all_set = {1,2,3}
print(all_set.difference(a_set)[0])


a = input()
b = input()
print(6 - a - b)

a = int(input())
b = int(input())
print(6 - a - b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())
if a==1 and b==2:
  print("3")
elif a==2 and b==3:
  print("1")
elif a==1 and b==3:
  print("2")

a = input()
b = input()
if a==1 and b==2:
  print("3")
elif a==2 and b==3:
  print("1")
elif a==1 and b==3:
  print("2")
  

print("".join(str(x) for x in ({1, 2, 3} - {int(input()), int(input())})))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = int(input())
B = int(input())

temp = list(A,B)

for i in range(1,4):
  if i not in temp:
    print(i)

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A,B = map(int, read().split())
temp = [A,B]
 
for i in range(1,4):
  if i not in temp:
    print(i)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=int(input())
b=int(input())
if a==1:
  if b==2:
    print(3)
  else:
    print(2)
elif a==2:
  if b==1:
    print(3)
  else:
    print(1)
else:
  if b==1:
    print(3)
  else:
    print(1)


a=int(input())
b=int(input())
print(6-a-b)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import numpy as np
a,b= map(int,input().split())
lcm = np.lcm(a, b)
print(lcm)

a = int(input())
b = int(input())
if a + b == 3:
    print(3)
elif a+b == 4:
    print(2)
else:
    print(1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
def main():
  a=int(input())
  b=int(input())
  c=6-a-b
  print(c)
  
 if __name__ == ′__main__′:
  main()
  
  

def main():
  A = int(input())
  B = int(input())
  C = 6-A-B
  print('{}'.format(C))


if __name__ == '__main__':
  main()


Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
print(6-input()-input())

N = int(input())
S,T = input().stlip

s=""

for i in range(N):
  s+=S[i]+T[i]
print(s)




print(6-int(input())-int(input()))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
ans = [1,2,3]
ans.remove(int(input()))
ans.remove(int(input()))

print(ans)

ans = [1,2,3]
a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)

print(ans)

ans = [1,2,3]
remove(int(input()))
remove(int(input()))

print(ans)

ans = [1,2,3]
a = int(input())
b = int(input())
ans.remove(a)
ans.remove(b)

print(ans[0])

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = input()
b = input()

if a == 1 and b == 2:
  print('3')
elif a == 2 and b == 1:
  print('3')
elif a == 1 and b == 3:
  print('2')
elif a == 3 and b == 1:
  print('2')
elif a == 2 and b == 3:
  print('3')
elif a == 3 and b == 2:
  print('1')

S = []
for _ in range(2):
    S.append(input())

if S == [1, 2]
  print('3')
elif S == [2, 1]:
  print('3')
elif S == [1, 3]:
  print('2')
elif S == [3, 1]:
  print('2')
elif S == [2, 3]:
  print('1')
elif S == [3, 2]:
  print('1')

S = []
for _ in range(2):
    S.append(input())

if S == [1, 2]
  print('3')
elif S == [1, 3]:
  print('2')
elif S == [2, 3]:
  print('1')

a = int(input())
b = int(input())
c = a + b

if c == 3:
  print('3')
elif c == 4:
  print('2')
else:
  print('1')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
n = int(input())
for _ in range(n):
  a, b = map(int, input().split())
  
if a + b ==  3:
  print(3)
elif a + b == 4:
  print(2)
elif a+b == 5:
  print(1)
 


a = int(input())
b = int(input())
  
if a + b ==  3:
  print(3)
elif a + b == 4:
  print(2)
elif a+b == 5:
  print(1)
 

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=int(input())
b=int(input())
c=[1,2,3]
c.remove(a)
c.remove(b)
print(c)

a=int(input())
b=int(input())
list=[1,2,3]
list.remove(a)
list.remove(b)
print(list[0])

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
lst = [1,2,3]
l = list(map(int, input().split()))
lst.remove(l[0])
lst.remove(l[1])
print(lst)

lst = [1,2,3]
a,b=(int(x) for x in input().split())
lst.remove(a)
lst.remove(b)
print(lst)

lst = [1,2,3]
l = [int(input()) for i in range(2)]
lst.remove(l[0])
lst.remove(l[1])
print(lst[0])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())

l = [1,2,3]

l.remove(a)
l.remove(b)

print(str(l))

a = input()
b = input()

l = [1,2,3]

l.remove(a)
l.remove(b)

print(l)


a = int(input())
b = int(input())
l = [1,2,3]
l.remove(a)
l.remove(b)
print(''.join(map(str,l)))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
ans = 6
for _ in rangr(2):
    a = int(input())
    ans += a
print(6 - ans)

ans = 6
for _ in range(2):
    a = int(input())
    ans += a
print(6 - ans)

ans = 0
for _ in range(2):
    a = int(input())
    ans += a
print(6 - ans)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import math as m
from array import *
import sys
import datetime
import calendar


a= int(input())
b=int(input())

if a==1 and b==2:
    print(3)
if a==2 and b==3:
    print(1)
if a==3 and b==1:
    print(3)
if a==3 and b==2:
    print(1)
if a==1 and b==3:
    print(2)
if a==3 and b==1:
    print(2)


import math as m
from array import *
import sys
import datetime
import calendar


a= int(input())
b=int(input())

if a==1 and b==2:
    print(3)
if a==2 and b==3:
    print(1)
if a==2 and b==1:
    print(3)
if a==3 and b==2:
    print(1)
if a==1 and b==3:
    print(2)
if a==3 and b==1:
    print(2)


Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = input()
B = input()
A = int(A)
B = int(B)

if A+B == 3:
    ans = 3
elif A+B == 4:
    ans == 2
elif A+B == 5:
    ans == 1
print(ans)

A = input()
B = input()
A = int(A)
B = int(B)

if A+B == 3:
    ans = 3
elif A+B == 4:
    ans == 2
elif A+B == 5:
    ans == 1

A = input()
B = input()
A = int(A)
B = int(B)

if A+B == 3:
    ans = 3
elif A+B == 4:
    ans = 2
elif A+B == 5:
    ans = 1
print(ans)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A,B = map(int, input().split())
if A+B == 3:
    print(3)
elif A+B == 4:
    print(2)
else:
    print(3)

A,B = map(int, input().split())
if (A==1) and (B==2):
    print(3)
elif (A==2) and (B==3):
    print(1)
else:
    print(2)

A,B = map(int, input().split())
if (A==1) and (B==2):
    print(3)
if (A==2) and (B==3):
    print(1)
if (A==3) and (B==1):
    print(2)

A = int(input())
B = int(input())
if A+B == 3:
    print(3)
elif A+B == 4:
    print(2)
else:
    print(1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import sys

choices = [1,2,3]
for l in sys.stdin:
    choices.remove(int(l))

choices.pop()

import sys

choices = [1,2,3]
for l in sys.stdin:
    choices.remove(int(l))

print(choices.pop())

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=input()
b=input()
print(6-a-b)

a=int(input())
b=int(input())
print(6-a-b)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())

print(set([1,2,3]) - a - b)

a = int(input())
b = int(input())

l = [1,2,3]
l.remove(a)
l.remove(b)

print(l[0])

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
n=int(input())
a=list(map(int,input().split()))
i,k=0,1
while i<n:
  if a[i]==k:
    k+=1
    i+=1
  else:
    i+=1
if k==1:
  print(-1)
else:
  print(n-k+1)


a=int(input())
b=int(input())

c=[1,2,3]
c[a-1]=0
c[b-1]=0

print(max(c))

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A=input()
B=input()
if(A==1 and B==2):
  answer=3
elif(A==2 and B==3):
  answer=1
elif(A==3 and B==1):
  answer=2
print(answer)

A=int(input())
B=int(input())
if(A==1 and B==2):
  answer==3
elif(A==2 and B==3):
  answer==1
elif(A==3 and B==1):
  answer==2
print(answer)


List=[1,2,3]
a=int(input())
b=int(input())
List.remove(a)
List.remove(b)
print(*List)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a,b=map(int,input().split())
n=[1,2,3]
n.remove(a)
n.remove(b)
print(n[0])

a,b=map(int,input().split())
n=[1,2,3]
n.remove(a)
n.remove(b)
print(n[0])

a=int(input())
b=int(input())
n=[1,2,3]
n.remove(a)
n.remove(b)
print(n[0])

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
n = int(input())
a = list(map(int,input().split()))
 
s = 1
t = 0
 
for i in range(n):
    if s == a[i]:
        s += 1
    else:
        t += 1
if t == n:
    t = -1
print(t)

n = int(input())
 
a = list(map(int,input().split()))
 
s = 1
t = 0
 
for i in range(n):
   if s == a[i]:
      s += 1
   else:
      t +=1
      
if t != n:
  print(t)
else:
  print(-1)

import math
 
a,b = map(int,input().split())
 
x = math.gcd(a,b)
 
print(a*b//x)

a = int(input())
b = int(input())

print(6-a+b)

n = int(input())
base = 10

if n%2 != 0:
  print(0)
else:
  ans = 0
  for i in range(10000)
    ans += n//base
    base *= 5   
  print(ans)
  

n = int(input())
base = 10
ans = 0
 
if n%2 != 0:
  print(0)
else:
  for i in range(1,100):
    ans += n//base
    base *= 5   
  print(ans)

a = int(input())
b = int(input())
 
print(6-a-b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a,b = map(int ,input().split())
l=[1,2,3]
l.pop(l.index(a))
l.pop(l.index(b))
print(l[0])

a = int(input())
b = int(input())
print(6-(a+b))

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A=input()
B=input()
if A!=1 and B!=1:
  print(1)
elif A!=2 and B!=2:
  print(2)
else A!=3 and B!=3:
  print(3)

A=int(input())
B=int(input())
ans = 6-A-B
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A= input()
B= input()

print(A)
print(B)

if int(A) == 1 and  int(B) == 2:
	print(3)
elif int(A) == 2 and int(B) == 3:
  	print(1)
else:
    print(2)

N = int(input())
S,T=map(str,input().split())

cnt = 0
ans = ""

for cnt in range(N):
  ans=ans+S[cnt]+T[cnt]
  
print(ans)

A= input()
B= input()

print(A)
print(B)

if int(A) == 1 or  int(B) == 2:
	print(3)
elif int(A) == 2 and int(B) == 3:
  	print(1)
else:
    print(2)

A= int(input())
B= int(input())

ans = 6-A-B

print(ans)

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())

answer_list = [1,2,3]
pop_list = []

for i in answer_list:
    if i == a:
        answer_list.pop(i)


for i in answer_list:
    if i == b:
        answer_list.pop(i)


print(answer_list[0])

a = int(input())
b = int(input())

answer_list = [1,2,3]

answer_list.remove(a)
answer_list.remove(b)

print(answer_list[0])

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import math
N = int(input())

if N%2 == 1:
    ans = 0
else:

    df = math.log10(N)
    d = math.floor(df)
    cnt = 0
    for i in range(d,0,-1):
        cnt += (N//10**i) * (10**i-1)//(10-1)
        N//=10**i

print(cnt)

N,u,v = map(int,input().split())
u -= 1
v -= 1

du = [0]*N
dv = [0]*N
du[u] = 0
dv[v] = 0
G = [[]]*N

def dfs(v, d, p, dis):
    dis[v] = d
    if G[v] != 0:
        for u in G[v]:
            if( u == p):
                continue
            else:
                dfs( u, d+1, v, dis )

def calcDist(s, dist):
    dfs(s, 0, -1, dist)

for i in range(N-1):
    e1,e2 = map(int, input().split())
    e1 -= 1
    e2 -= 1
    if G[e1] == []:
        G[e1] = [e2]
    else:
        G[e1].append(e2)
    if G[e2] == []:
        G[e2] = [e1]
    else:
        G[e2].append(e1)

if G[u]==[v]:
    ans = 0
else:    

    calcDist(v,dv)
    calcDist(u,du)
    maxD = 0
    for idu,idv in zip(du,dv):
        if idu < idv:
            maxD = max(maxD, idv)       
    ans = maxD-1
    
print(ans)

A = int(input())
B = int(input())

print(1+2+3-A-B)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=set([input() for _ in range(2)])
ans={'1','2','3'}
print(ans-a)

a=set([input() for _ in range(2)])
ans={'1','2','3'}
b=list(ans-a)
print(b[0])

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a,n=0,int(input())
if n%2<1:
 n//=2
 while n:n//=5;a+=n
print(a)

print(6-int(input())-int(input()))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=input()
b=input()

ans={1,2,3}
ans.remove(a)
ans.remove(b)

if ans == {a}
    print("a")
if ans == {b}
    print("b")
if ans == {c}
    print("c")

a=input()
b=input()

ans={1,2,3}
ans.remove(a)
ans.remove(b)
print(ans)


a = input("A")
b = input("B")

a = int(a)
b = int(b)

print(6-a-b)

a=input()
b=input()

a={a}
b={b}

ans={1,2,3}
ans=ans-a-b
print(ans)

a = input("")
b = input("")

a = int(a)
b = int(b)

print(6-a-b)

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = list(map(int,input().split()))
print(6-sum(A))

A = int(input())
B = int(input())
print(str(6-sum([A, B])))

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
ans = set([1, 2, 3])
a = set(map(int,input().split()))
b = ans - a
b = list(b)
print(b[0])


ans = [1, 2, 3]
for i in range(2):
    ans.remove(int(input()))
print(ans[0])

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A=int(input())
B=int(input())
if A==1 and B==2:
  print(3)
elif A==2 and B==3:
  print(1)
else A==3 and B==1:
  print(2)


A=int(input())
B=int(input())
if A==1 and B==2:
  print(3)
elif A==2 and B==3:
  print(1)
elif A==3 and B==1:
  print(2)
elif A==1 and B==3:
  print(2)
elif A==3 and B==2:
  print(1)
else:
  print(3)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a=int(input())
b=int(input())
c=1
for i in round(3):
  if a==c or b==c:
    c=c+1
  else:
    print(c)
    break


a=int(input())
b=int(input())
c=1
for i in range(3):
  if a==c or b==c:
    c=c+1
  else:
    print(c)
    break


Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a, b = map(int, input().split())
print(6 - a - b)

a = int(input())
b = int(input())
print(6 - a - b)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
c = [1,2,3]

a　= int(input())
b　= int(input())

c.remove(a)
c.remove(b)

c[0]

# -*- coding: utf-8 -*-
a, b = map(int, input().split())
 
if a!=3 && b!=3:
  c = 3
elif a!=2 && b!=2:
  c = 2
elif a!=1 && b!=1:
  c = 1
  
print("{}".format(c))

c = [1,2,3]

a, b = map(int, input().split())

c.remove(a)
c.remove(b)

c[0]

# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

if a==1 && b==2:
  c = 3
elif a==2 && b==1:
  c = 3
elif a==1 && b==3:
  c = 2
elif a==3 && b==1:
  c = 2
else:
  c = 1
  
print("{}".format(c))

a, b = map(int, input().split())
c = [1,2,3]
c.remove(a)
c.remove(b)

print(c[0])


c = [1,2,3]

a = int(input())
b = int(input())

c.remove(a)
c.remove(b)

print(c[0])

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
ans=[1,2,3]
a=int(input())
b=int(input())
ans.del(a)
ans.del(b)
print(ans[0])

ans=[1,2,3]
a=int(input())
b=int(input())
ans.remove(a)
ans.remove(b)
print(ans[0])

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = str(input())
b = str(input())
ans = "123"
ans.replace(a,"")
ans.replace(b,"")
print(ans)

a = str(input())
b = str(input())
ans = '123'
ans = ans.replace(a,'').replace(b,'')
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = input()
b = input()
#a,b=1,2
all = [1,2,3]
#result = next(filter(lambda x: x in [a,b], all))
result = filter(lambda x: not x in [a,b], all)
print(result[0])


a, b = input(), input()
#a,b=2,3
a,b= [int(i) for i in [a,b]]
all = [1,2,3]
result = list(filter(lambda x: not x in [a,b], all))
print(result[0])


Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())
print(6-a+b)

a = int(input())
b = int(input())

if a == 1 and b == 2:
  print(3)
elif a == 1 and b == 3:
  print(2)
elif a == 2 and b == 3:
  print(1)
elif a == 2 and b == 1:
  print(3)
elif a == 3 and b == 2:
  print(1)
elif a == 3 and b == 1:
  print(2)

  

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
li=[1,2,3]
li.pop(int(input()))
li.pop(int(input()))
print(li[0])

li=[1,2,3]
li.pop(li.index(int(input())))
li.pop(li.index(int(input())))
print(li[0])


Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
N=int(input())
if N%2 == 1:
    print(0)
else:
    d = 5
    count=0
    while N>1:
        n = N
        while n%d == 0:
            count+=1
            n/=d
    N-=2
print(count)


A=[1,2,3]
a=int(input())
b=int(input())
A.remove(a)
A.remove(b)
print(A[0])


Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = input()
b = input()
nums = "123"
nums.remove(a)
nums.remove(b)
print(nums)

a = int(input())
b = int(input())
nums = [1,2,3]
nums.remove(a)
nums.remove(b)
print(*nums)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
num = int(input())
 
s1,s2 = input().split()
 
ans = ''
 
for i in range(num):
	ans = ans + s1[i]
	ans = ans + s2[i]
    
print(ans)

number1 = int(input())
number2 = int(input())
 
n_list = [1,2,3]
 
n_list.remove(number1)
n_list.remove(number2)
 
print(n_list[0])

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
n=int(input())
ans=0
if n%2==0:
    num=len(str(n))*100
    n=int(n/2)
    ans=0
    for i in range(num):
        ans+=n//(5**(i+1))
print(int(ans))

a=int(input())
b=int(input())
print(6-a-b)

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a,b=input(),input()
for i in range(1,4):
  if i is (not a or b):
    print(i)

a=int(input())
b=int(input())
print(list({1,2,3}-{a,b})[0])

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import fractions
a,b = map(int,input().split())
def lcm(x,y):
    return (x*y)//fractions.gcd(x,y)
print(lcm(a,b))

A = input()
B = input()
ans = '123'
ans = ans.replace(A,'').replace(B,'')
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = input()
B = input()

ans = ['1', '2', '3']

for i in range(len(ans)):
  if ans[i] == A or ans[i] = B:
    del ans[i]
    
print(nas[0])

A = input()
B = input()

ans = ['1', '2', '3']

for i in range(len(ans)):
  if ans[i] == A or ans[i] == B:
    del ans[i]
    
print(ans[0])


A = input()
B = input()

ans = ['1', '2', '3']

for i in range(len(ans)):
  if ans[i] == A or ans[i] == B:
    del ans[i]
    
print(nas[0])


A = input()
B = input()        
print(6 - A - B)


A = int(input())
B = int(input())
print(6 - A - B)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = int(input())
b = int(input())

problem = set(1,2,3)

print(problem - set(a,b))



a = int(input())
b = int(input())

problem = set([1,2,3])

print((problem - set([a,b])).pop())



Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
def Amondai(A, B):
	newArray = {1, 2, 3}
    newArray.clear(A)
    newArray.clear(B)
    retern newArray

A = int(input())
B = int(input())
array = (1,2,3)
array.remove(A,B)
print (array)

a = int(input())
b = int(input())
print (6 - a - b)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
N=int(input())
A,B=map(str,input().split())
S=[]
for i in range(N)
    S.append(A[i])
    S.append(B[i])
print(S)

A=int(input())
B=int(input())
if A+B==3:
  print(3)
elif A+B==4:
  print(2)
else:
  print(1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
f = input().split(" ")
print(6 - int(f[0]) - int(f[1]) )

a = int(input())
b = int(input())
print(6 - a -b )

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import fractions
a, b = map(int,input().split())
def jk(j,k):
    return j*k//fractions.gcd(j,k)
print(jk(a, b))

a, b = [int(input()) for _ in range(2)]
set_ = {1,2,3}
set_.discard(a)
set_.discard(b)
print(set_.pop())

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
ans = [1,2,3]
A = input()
B = input()

ans.del(A)
ans.del(B)

print(ans[0])


a = input()
b = input()

ans = [1,2,3]

ans.remove(int(a))
ans.remove(int(b))

print(ans[0])

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
n=int(input())
A,B = input().split()
i=0
i=int(i)
list01=[]
for d in range(n): 
  lisa=A[i]+B[i]
  list01.append(lisa)
  i+=1
for s in list01:
print(s)

S=int(input())
W=int(input())
if S+W==3:
  print(3)
elif S+W==4:
  print(2)
elif S+W==5:
  print(1)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
import fractions
a,b=input().split()
a=int(a)
b=int(b)
lcm=a*b/fractions.gcd(a,b)
print(int(lcm))

a=input()
b=input()
print(6-int(a)-int(b))

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
a = {1, 2, 3}
a.remove(int(input()))
a.remove(int(input()))
print(list(a))

# solution
import io

nim = int(input())

a, b = input().split()

for _a, _b in zip(a, b):
    print(_a + _b, end="")

a = {1, 2, 3}
a.remove(int(input()))
a.remove(int(input()))
print(list(a)[2])

val = {1, 2, 3}
val.remove(int(input()))
val.remove(int(input()))
print(list(val)[0])

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A,B=map(int,input().split())
if A==1,B==2 or A==2,B==1:
  print(3)
elif A==1,B==3 or A==3,B==1:
  print(2)
else:
  print(1)

A,B=map(int,input().split())
list=[1,2,3]
if A==list[0],B==list[1] or A==list[1],B==list[0]:
  print(list[2])
elif A==list[0],B==list[2] or A==list[2],B==list[0]:
  print(list[1])
else:
  print(list[0])


A=input()
B=input()
print(6-A+B)

a=int(input())
b=int(input())
print(6-a-b)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
str(list(answers.keys())[0])

A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
list(answers.keys())[0]

A = int(input())
B = int(input())

answers = {1:True, 2:True, 3:True}
answers.pop(A)
answers.pop(B)
print(list(answers.keys())[0])

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A,B = map(int, input().split())
print(6-A-B)

A = int(input())
B = int(input())
print(6-A-B)

Verdicts: Runtime Error

Accepted
Problem: Takahashi is solving quizzes. He has easily solved all but the last one.  The last quiz has three choices: 1, 2, and 3.  With his supernatural power, Takahashi has found out that the choices A and B are both wrong.  Print the correct choice for this problem.

Submission attempts (in order):
A = int(input())
B = int(input())

if A == 1 and B == 2:
  print(3)
elif A == 2 and B == 3:
  print(1)
elif A == 1 and B == 3:
  print(2)

A = int(input())
B = int(input())

if (A==1 or A==2) and (B==1 or B==2):
  print(3)
elif (A==2 or A==3) and (B==2 or B==3):
  print(1)
elif (A==1 or A==3) and (B==1 or B==3):
  print(2)


Verdicts: Wrong Answer

Accepted