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):
N, u, v = map(int, input().split())
u -= 1
v -= 1

e_list = [[] for _ in range(N)]

for _ in range(N - 1):
	a, b = map(int, input().split())
	a -= 1
	b -= 1
	e_list[a].append(b)
	e_list[b].append(a)

def calc_depth_table(v):
	queue = [[v, None, 0]]
	depth_table = [0] * N
	depth_table[v] = 0
	
	while queue:
		cur, pre, depth = queue.pop()
		depth += 1
		for n in e_list[cur]:
			if n != pre:
				queue.append([n, cur, depth])
				depth_table[n] = depth
	return depth_table

def calc_depth_table2(depth_from_v, u):
	queue = [[u, None, 0, depth_from_v[u], u]]
	depth_table = [0] * N
	depth_table[u] = (0, depth_from_v[u], u)
	
	while queue:
		cur, pre, depth, min_depth_from_v, min_depth_point = queue.pop()
		depth += 1
		for n in e_list[cur]:
			if n != pre:
				depth2 = depth_from_v[n]
				if min_depth_from_v > depth2:
					new_min_depth = depth2
					new_min_depth_point = n
				else:
					new_min_depth = min_depth_from_v
					new_min_depth_point = min_depth_point
				queue.append([n, cur, depth, new_min_depth, new_min_depth_point])
				depth_table[n] = (depth, new_min_depth, new_min_depth_point)
	return depth_table

depth_from_v = calc_depth_table(v)
depth_from_u = calc_depth_table2(depth_from_v, u)

#print(depth_from_v)
#print(depth_from_u)

max_count = 0
for i in range(N):
	a_dist = depth_from_v[i]
	t_dist, a_hit_dist, hit_pos = depth_from_u[i]
	t_hit_dist = depth_from_u[hit_pos][0]
	
#	print(t_hit_dist, a_hit_dist)
	if t_hit_dist < a_hit_dist:
#		print(t_hit_dist, a_hit_dist)
#		if (a_hit_dist - t_hit_dist) % 2 == 1:
		if max_count < a_dist - 1:
			max_count = a_dist - 1
#			else:
#				

print(max_count)


answers = ["1", "2", "3"]
answers.remove(input().strip())
answers.remove(input().strip())
print(answers[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())
al = [1,2,3]

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain)


a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a)
remain = al.remove(b)
print(remain[0])




a = int(input())
b = int(input())
al = list([1,2,3])

remain = al.remove(a,b)

print(remain)


a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain[0])



a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a,b)

print(remain)


a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[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):
wrong_answer = [input() for i in range(2)]

all = [1,2,3]

for num in wrong_answer:
  if num in all:
    all.remove(num)
    
print(all)


wrong_answer = [int(input()) for i in range(2)]

all = [1,2,3]

for num in wrong_answer:
  if num in all:
    all.remove(num)
    
print(all[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=input()

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

  


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

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

print(x.pop(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):
# -*- coding:utf-8 -*-
A=int(input())
B=int(input())
if A+B==3:
    print(3)
elif A+B=4:
    print(2)
else:
    print(1)

# -*- coding:utf-8 -*-
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):
N = int(input())
a = list(map(int,input().split()))
BS = 1
for i in range(N):
  if a[i] == i:
    BS += 1
if a[i] == 1:
  print(-1)
else:
  print(N+1-BS)

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,b=map(int,input().split());print(6-a-b)

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,b,c = map(int,input().split())
a = input()
b = input()
print(6-a-b)


import fractions
A, B = map(int, input().split())
print (int(A * B // (fractions.gcd(A,B))))

#a,b,c = map(int,input().split())
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, B = map(int, input().split())

import fraction

print(int(A * B / fraction.gcd(A, B)))


import math

A, B = input().split()

print(int(A), int(B))
print(int(int(A) * int(B) / math.gcd(A, B)))


A, B = map(int, input().split())

print(A, B)



A, B = map(int, input().split())

import fractions

print(int(A * B / fractions.gcd(A, B)))


import math

A, B = map(int, input().split())

print(A, B)



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

r = list(filter(lambda x: x != A and x != B, [1, 2, 3]))
print(r[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):
# -*- coding: utf-8 -*-


def main():
    A, B = [int(_) for _ in input().split()]

    product = A * B
    for divisor in range(min([A, B]) // 2, 2, -1):
        if A % divisor == 0 and B % divisor == 0:
            A = A // divisor
            B = B // divisor
            product = product // divisor

    print(product)


def correct_1():
    A, B = [int(_) for _ in input().split()]

    for i in range(1, B + 1):
        if A * i % B == 0:
            print(A * i)
            break


def correct_2():
    A, B = [int(_) for _ in input().split()]

    def gcd(a, b):
        while b != 0:
            a, b = b, a % b
        return a

    def lcm(a, b):
        return a * b // gcd(a, b)

    print(lcm(A, B))


if __name__ == "__main__":
    correct_1()


# -*- coding: utf-8 -*-


def main():
    A, B = [int(_) for _ in input().split()]

    product = A * B
    for divisor in range(min([A, B]) // 2, 1, -1):
        if A % divisor == 0 and B % divisor == 0:
            A = A // divisor
            B = B // divisor
            product = product // divisor

    print(product)


if __name__ == "__main__":
    main()


# -*- coding: utf-8 -*-


def main():
    A = int(input())
    B = int(input())

    print('{}'.format(6 - A - B))


if __name__ == "__main__":
    main()


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())
print(1 if a!=1 and b!=1 else 2 if a!=1 and b!=1 else 3)

a = int(input())
b = int(input())
print(1 if a!=1 and b!=1 else 2 if a!=2 and b!=2 else 3)

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().split()
A=int(a[0])
B=int(a[1])
li=[2]
li2=[]
p=0
if B>A:
    c=A
    A=B
    B=A

for i in range(3,int(A**0.5)+1):
    for j in range(2,i+1):
        if j==i:
            li.append(i)
        if i%j==0:
            break
while p==0:
    for s in li:
        if A%s==0 and B%s==0:
            A/=s
            B/=s
            li2.append(s)
            break
        if A%s==0 and B%s!=0:
            A/=s
            li2.append(s)
            break
        if A%s!=0 and B%s==0:
            B/=s
            li2.append(s)
            break
        if s==li[-1]:
            p=1
n=1
for m in li2:
    n*=m
print(n)

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):
S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
print(C)

S = {1,2,3}
A = tuple(int(input()))
B = tuple(int(input()))
print(int(S-A-B))

S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B


S = {1,2,3}
A = {int(input())}
B = {int(input())}
C = S - A - B
V = C.pop()
print(V)


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):
#usr/bin/python3
a, b = input().split()
print(6-int(a)-int(b))

#usr/bin/python3
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):
import sys
sys.setrecursionlimit(100000000)
n,u,v=map(int,input().split())
visitedlist=[-1 for  i in range(n)]
kilist=[[] for i in range(n)]
anslist=[0 for i in range(n)]
searchedlist=[-1 for i in range(n)]
for i in range(n-1):
        a,b=map(int,input().split())
        kilist[a-1].append(b)
        kilist[b-1].append(a)
def search(P):
        searchedlist[P-1]=1
        visitedlist[P-1]=1
        flag=0
        for j in kilist[P-1]:
            if visitedlist[j-1]<0:
                visitedlist[j-1]=1
                flag+=1
                anslist[j-1]=anslist[P-1]+1
        else:
            pass

        if flag>0:    
            for k in kilist[P-1]:
                if searchedlist[k-1]==-1:
                    search(k)
search(v)
if v<u:
	print(anslist[u]-1)
else:
  if u>1:
  	print(v-u)
  else:
    print(v-2)



a=int(input())
b=int(input())
for j in range(1,4):
    if j!=a and j!=b:
        print(j)

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())
print(6-A-int(input())

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())
for i in raneg(3):
  if i+1 !=A && i+1 != B:
    print(i+1)

A=int(input())
B=int(input())
for i in range(3):
  if i+1 !=A and i+1 != B:
    print(i+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, 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:
  return 3
elif A == 1 and B ==3:
  return 2
elif A == 2 and B ==1:
  return 3
elif A == 2 and B ==3:
  return 1
elif A == 3 and B ==1:
  return 2
else:
  return 1

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 ==1:
  print(3)
elif A == 2 and B ==3:
  print(1)
elif A == 3 and 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):
import math

n=int(input())

c=0
i=1
tmp=math.floor(n/2)
while tmp!=0:
  tmp=math.floor(tmp/5)
  c=c+tmp
if n%2==0:
  print(int(c))
else:
  print(0)

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=(int(x) for x in input().split())
b=(int(x) for x in input().split())
numbers=[a,b]
for i in range(1,4):
  if i not in numbers:
    print(i)
    


a=int(input())
b=int(input())
numbers=[]
numbers.append(a)
numbers.append(b)
for i in range(1,4):
  if i not in numbers:
    print(i)
    



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 = 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):
import math
def f(n):
    if n<2:
        return 1
    else:
        return n * f(n-2)
N=int(input())



if not N%2==0:
    print(0)
else:
    count5 = 0
    max_5 = int(math.log(N,5))
    for i in range(1,max_5+1):
        count5+=int(int(N/(5**i))/2)
    #print(min(count5,count2))
    count5 = 0 
    d = 5*2
    while int(N/d)>0:
        count5+=int(N/d)
        d = d*5

    print(count5)


    


A=int(input())
B=int(input())
lis = [A,B]
for i in range(1,4):
    if not i in lis:
        print(i)


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 = map(int,input().split())
print(6-A-B)

A, B = map(int,input().split())
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):
n= int(input())
s= list(input())
t= list(input())

ans= ""
for i in range(n):
    ans=ans+s[i]+t[i]

print(ans)

a= int(input())
b= int(input())
c= 6
print(c-(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,b=map(int,input().split())
if a!=3 and b!=3:
  print('3')
elif a!=2 and b!=2:
  print('2')
else:
  print('1')

List=list(map(int,input()))
if 1 in List and 2 in List:
  print(3)
elif 1 in List and 3 in List:
  print(2)
else:
  print(1)

a,b=map(int,input().split())
c=1
d=2
e=3
if a!=3 and b!=3:
	print(e)
elif a!=2 and b!=2:
	print(d)
else:
	print(c)

a,b=int(input().split())
if(a!=3 and b!=3):
  print(3)
elif(a!=2 and b!=2):
  print(2)
else:
  print(1)

a,b=map(int,input().split())
if a!=3 and b!=3:
	print(3)
elif a!=2 and b!=2:
	print(2)
else:
	print(1)

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

a,b=map(int,input().split())
if a!=3 and b!=3:
	c=3
    print(c)
elif a!=2 and b!=2:
	c=2
    print(c)
else:
	c=1
    print(c)

a,b=int(input().split())
if a!=3 and b!=3:
  print(3)
elif a!=2 and b!=2:
  print(2)
else:
  print(1)

a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
  c=3
elif a!=2 and b!=2:
  c=2
else:
  c=1

a,b=map(int,input().split())
if a!=3 and b!=3:
	c=3
elif a!=2 and b!=2:
	c=2
else:
	c=1
print(c)

a,b=map(int,input().split())
if a!=3 and b!=3:
  c=3
elif a!=2 and b!=2:
  c=2
else:
  c=1
finally:
  print(c)

a,b=map(int,input().split())
if a!=3 and b!=3:
	c=3
elif a!=2 and b!=2:
	c=2
else:
	c=1
print(c)

a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
  c=3
  print(c)
elif a!=2 and b!=2:
  c=2
  print(c)
else:
  c=1
  print(c)

a,b=map(int,input().split())
c=0
if a!=3 and b!=3:
	c=3
elif a!=2 and b!=2:
	c=2
else:
	c=1
finally:
  	print(c)

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

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):
a = int(input())
b = int(input())
if a == 1 and b == 2:
    print(3)
elif a == 2 and b ==3:
    print(1)
else:
    pritn(2)
    

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):
x,y = map(int,input().split())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
else:print('1')

x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
elif x==3 & y==2:
    print('1')

x,y = map(int,input().split())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
else:print('1')

x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif x==3 & y==1:
    print('2')
elif x==1 & y==3:
    print('2')
elif x==2 & y==1:
    print('3')
else:print('1')

x = int(input())
y = int(input())

if (x==1)&(y==2):
    print('3')
elif (x==2)&(y==3):
    print('1')
elif (x==3) & (y==1):
    print('2')
elif (x==1) & (y==3):
    print('2')
elif (x==2) & (y==1):
    print('3')
elif (x==3) & (y==2):
    print('1')

Verdicts: 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 = int(input())
b = int(input())
ls = [1,2,3]
del ls[a-1]
del ls[b-1]
print(ls)

a=int(input())
b=int(input())
li=[a,b]
li.sort()
if li==[1,2]:print(3)
elif li==[2,3]: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):
a = int(input())
b = int(input())

cnt = [0, 0, 0]
cnt[a-1] = 1
cnt[b-1] = 1

if cnt[0] == 0:
  print(1)
if cnt[1] == 1:
  print(2)
if cnt[2] == 2:
  print(3)

print(6-sum(list(map(int, input().split()))))

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

print(6-a-b)

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=input()
b=input()
l=[1,2,3]
l.remove(a)
l.remove(b)
ans=l[0]
print(ans)

a=int(input())
b=int(input())
l=[1,2,3]
l.remove(a)
l.remove(b)
ans=l[0]
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):
from fractions import gcd

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

print(int(a*b/gcd(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):
print(6-int(input()-int(input()))

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):
A, B = map(int, input().split())
l1 = [1,2,3]
l2 = [A, B]
l = l1 - l2
print(l[0])

A, B = map(int, input().split())
print(6-A-B)

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):
s = int(input())
str1, str2 = [s for s in input().split()]
print(str1)
print(str2)
ans=[]
for i in range(s-1):
  ans += str1[i]
  ans += str2[i]

  
print(''.join(ans))

a = int(input())
b = int(input())
c = a+b
print(6-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=int(input())
b=int(input())
for i in range(3)
	if((i+1==a or i+1==b)=False):
    	print(i+1)

a=int(input())
b=int(input())
for i in range(3):
    if((i+1==a or i+1==b)==False):
        print(i+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,b=(int(x), for x in input().splite())
c=a+b
if c==3:
    print(3)
elif c==4:
    print(2)
else:
    print(1)

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

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

a,b=(int(x), for x in input().splite())
c=a+b
if c==3:
    print(3)
elif c==4:
    print(2)
else:
    print(1)

a,b=(int(x), for x in input().splite())
c=a+b
if c==3:
    print(3)
elif c==4:
    print(2)
else:
    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: Runtime Error

Runtime Error

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 = int(input())
b = int(input())
arr = [1,2,3]
for i in arr:
  if i != a or i !=b:
	print(i)
    

a = int(input())
b = int(input())
arr = [1,2,3]
arr.remove(a)
arr.remove(b)
print(arr[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,B = 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())
for i in range(3):
  if (i != A) and (i != B):
    print(i)

A = int(input())
B = int(input())
for i in range(1,4):
  if (i != A) and (i != B):
    print(i)

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):
data = input().split()

if not('1' in data):
  print(1)
elif not('2' in data):
  print(2)
elif not('3' in data):
  print(3)


data = [int(input()), int(input())]

if not(1 in data):
  print(1)
elif not(2 in data):
  print(2)
elif not(3 in data):
  print(3)


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):
n1 = int(input())
n2 = int(input())
 
print(n1)
print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
else n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
else n1 ==3:
  if n2 == 1:
    print("2"):
  else:
    print("1"):

n1 = int(input())
n2 = int(input())
 
#print(n1)
#print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
else n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
else n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

n1 = int(input())
n2 = int(input())
 
print(n1)
print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
elif n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
elif n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

n1 = int(input())
n2 = int(input())

#print(n1)
#print(n2)

if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
else n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
else n1 ==3:
  if n2 == 1:
    print("2"):
  else:
    print("1"):


n1 = int(input())
n2 = int(input())
 
#print(n1)
#print(n2)
 
if n1 == 1:
  if n2 == 2:
    print("3")
  else:
    print("2")
elif n1 == 2:
  if n2 == 1:
    print("3")
  else:
    print("1")
elif n1 ==3:
  if n2 == 1:
    print("2")
  else:
    print("1")

Verdicts: Runtime Error

Runtime Error

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):
lis = [1,2,3]

l = list(map(int, input()))

for i in l:
    lis.remove(i)

print(lis[0])

lis = [1,2,3]

lis.remove(int(input()))
lis.remove(int(input()))

print(lis[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())

t = set([1, 2, 3])
s = set([a,b])
ans = t - s
print(list(ans[0]))


a = int(input())
b = int(input())
 
t = set([1, 2, 3])
s = set([a,b])
ans = t - s
print(list(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, b = map(int, input().split())
c = 6 - a- b
print(c)

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())

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


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

for i in range(2):
    tmp.append(int(input()))

for j in ans:
    if j not in tmp:
        print(j)


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 = [1,2,3]

a.remove(int(input()))
a.remoce(int(input()))

print(a[0])

a = int(input())
b = int(input())
c = [1, 2, 3]

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

print(c[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):
from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
from math import gcd
import bisect
ii = lambda: int(input())
iia = lambda: list(map(int,input().split()))
isa = lambda: list(input().split())

a,b = iia()

print(int((a*b)/gcd(a,b)))

import math
from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
import bisect
ii = lambda: int(input())
iia = lambda: list(map(int,input().split()))
isa = lambda: list(input().split())

a = ii()
b = ii()

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 = it(input())
b = int(input())
if a > b:
    if a-1 == b and b > 1:
        print(a-b)
    elif a-1 == b:
        print(a+1)
    else:
        print(a-1)
else:
    if b-1 == a and a > 1:
        print(b-a)
    elif b-1 == a:
        print(b+1)
    else:
        print(b-1)

        

a = int(input())
b = int(input())
if a > b:
    if a-1 == b and b > 1:
        print(a-b)
    elif a-1 == b:
        print(a+1)
    else:
        print(a-1)
else:
    if b-1 == a and a > 1:
        print(b-a)
    elif b-1 == a:
        print(b+1)
    else:
        print(b-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):
N = int(input())

if N % 2 == 1:
  print(0)
  exit()

count = 0
denom = 10

while denom <= N:
  count += N // denom
  denom = denom * 5

print(count)


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

if A == 1 and B == 2:
  print(3)
if A == 2 and B == 1:
  print(3)
if A == 1 and B == 3:
  print(2)
if A == 3 and B == 1:
  print(2)
if A == 2 and B == 3:
  print(1)
if A == 3 and B == 2:
  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):
a, b = map(int, intput().split())
import math
print(a*b//math.gcd(a,b))


n = int(input())
S = list(input().split())
T = list(input().split())

ans=""

for i in range(n)
	ans+=S[i]+T[i]

print(ans)


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


a, b = map(int, input().split())
import math
print(a*b/math.gcd(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):
print(6-int(input())+int(input()))

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()
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):
def func2(n):
    ans = 1
    for i in range(2, n+1, 2):
        ans *= i
    return ans

def cnt_zero(n):
    cnt = 1
    power = 10**cnt
    while n % power == 0:
        cnt += 1
        power = 10**cnt
    return cnt - 1

n = int(input())
if (n % 2) != 0:
    print(0)
else:
    f = func2(n)
    cnt = cnt_zero(f)
    print(cnt)


a = int(input())
b = int(input())
for i in range(1, 3+1):
    if i != a and i != b:
        print(i)

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())
abc=[1,2,3]
abc.pop(a)
abc.pop(b)
print(abc[0])


a=int(input())
b=int(input())
abc=[1,2,3]
abc.remove(a)
abc.remove(b)
print(abc[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 fractions
a,b = map(lambda x: int(x), input().split())

print(int(a * b / fractions.gcd(a, b)))

a = input()
b = input()

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

print(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):
# coding: utf-8
# Your code here!

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)

# coding: utf-8
# Your code here!

list = [1, 2, 3]

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

for i in list : 
    if A != i and B != i : 
        print(i)

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 = map(int , input() .split())
ma = max(a , b)
mi = min(a , b)
if ma == 3 :
    print(ma - mi)
else :
    print(ma + mi)

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, B = map(int,open(0).read().split('\n'))
if A!=1 and B!=1:
    print(1)
elif A!=2 and B!=2:
    print(2)
else:
    print(3)

A, B = map(int,open(0).read().split('\n'))
if A!=1 and B!=1:
    print(1)
elif A!=2 and B!=2:
    print(2)
else:
    print(3)

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

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())
def gcd(a,b):
    x = max(a,b)
    y = min(a,b)
    while x // y != 0:
        z = x // y
        y = z
        return z
print(int(a * b / gcd(a,b)))

a = int(input())
b = int(input())
if a == 1 and b == 2 or a == 2 and b == 1:
  print("3")
elif a == 1 and b == 3 or a == 3 and 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):
def gcd(a,b):
  if a==0:
    return b
  return gcd(b%a,a)
a,b = map(int,input().split())

print((a*b)//gcd(a,b))

x = int(input())
y = int(input())
k = [1,2,3]
k.remove(x)
k.remove(y)
print(k[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, b = map(int,input().split())
ans = 6-a-b
print(ans)


a, b = map(int,input().split())
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):
i = [input() for i in range(2)]

if 1 not in i:
  print("1")
elif 2 not in i:
  print("2")
else:
  print("3")

i = [int(input()) for i in range(2)]

if 1 not in i:
  print("1")
elif 2 not in i:
  print("2")
else:
  print("3")

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):
ab = list(map(int, input().split()))

print(min(set([1, 2, 3]) - set(ab)))

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

print(min((set([1, 2, 3]) - set([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 = int(input())
b = int(input())

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


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):
A,B = map(int,input().split())
if A+B==3:
  print(3)
elif A+B==4:
  print(2)
else:
  print(1)

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,B = map(int,input().split())
if (A==1 and B==2) or (A==2 and B==1):
  print(3)
elif (A==2 and B==3) or (A==3 and B==2):
  print(1)
elif (A==3 and B==1) or (A==1 and B==3):
  print(2)

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

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,B = map(int,input().split())
if A==1 and B==2:
  print(3)
elif A==2 and B==3:
  print(1)
elif 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

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):
for i in {1,2,3}.difference(set(map(int,input().split(' ')))):
    print(i)

print({1,2,3}.difference(set(map(int,input().split(' ')))))

a = int(input())
b = int(input())
for i in range(1,4):
    if i != a and i !=b:
        print(i)

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):
import fractions

A, B = map(int, input().split())

def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)

print(lcm(A,B))

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

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

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

if (A == 3 and B == 2) or (A == 2 and B == 3):
    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):
all=[1,2,3]

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

all.remove(A)
all.remove(B)

print(all)

all=[1,2,3]
 
A=int(input())
B=int(input())
 
all.remove(A)
all.remove(B)
 
print(all[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 = input(int)
B = input(int)

print(6-A-B)

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

print(6-A-B)


Verdicts: Runtime Error

Accepted