problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02760 | x = [input().split() for i in range(3)]
N = int(input())
b = [int(input()) for n in range(N)]
l = [[0]*3, [0]*3, [0]*3]
for val in b:
for i in range(3):
for j in range(3):
print(val)
if val == int(x[i][j]):
l[i][j] = 1
if l[0][0] + l[0][1] + l[0][2] == 3:
print('Y... | x = [input().split() for i in range(3)]
N = int(input())
b = [int(input()) for n in range(N)]
l = [[0]*3, [0]*3, [0]*3]
for val in b:
for i in range(3):
for j in range(3):
if val == int(x[i][j]):
l[i][j] = 1
if l[0][0] + l[0][1] + l[0][2] == 3:
print('Yes')
elif l[1][0] + l[1... | [
"call.remove",
"identifier.change",
"call.function.change"
] | 548,654 | 548,653 | u630027862 | python |
p02760 | a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
c_list = list(map(int, input().split()))
N = int(input())
d_list = [int(input()) for k in range(N)]
for n in range(3):
for p in range(3):
if d_list[n] == a_list[p]:
a_list[p] = 555
for q in range(3):
... | a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
c_list = list(map(int, input().split()))
N = int(input())
d_list = [int(input()) for k in range(N)]
for n in range(N):
for p in range(3):
if d_list[n] == a_list[p]:
a_list[p] = 555
for q in range(3):
... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 548,657 | 548,658 | u670606123 | python |
p02760 | def judge_bingo(m,a):
sum_d1 = 0
sum_d2 = 0
for i in range(m):
sum_h = 0
sum_v = 0
for j in range(m):
sum_h += a[i][j]
sum_v += a[j][i]
if sum_h==3 or sum_v==3:
return True
sum_d1 += a[i][i]
sum_d2 += a[i][-i-1]
... | def judge_bingo(m,a):
sum_d1 = 0
sum_d2 = 0
for i in range(m):
sum_h = 0
sum_v = 0
for j in range(m):
sum_h += a[i][j]
sum_v += a[j][i]
if sum_h==3 or sum_v==3:
return True
sum_d1 += a[i][i]
sum_d2 += a[i][-i-1]
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 548,665 | 548,666 | u137061893 | python |
p02760 | import copy
A = [[0]*3 for i in range(3)]
for i in range(3):
A[i] = list(map(int, input().split()))
N = int(input())
b = [int(input()) for i in range(N)]
A_copy = copy.copy(A)
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j] == b[k]:
A_copy[i][j] = -1
for ... | import copy
A = [[0]*3 for i in range(3)]
for i in range(3):
A[i] = list(map(int, input().split()))
N = int(input())
b = [int(input()) for i in range(N)]
A_copy = copy.copy(A)
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j] == b[k]:
A_copy[i][j] = -1
for ... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,667 | 548,668 | u245870380 | python |
p02760 |
#a.append(list(map(int, input().split())))
#b.append(list(map(int, input().split())))
#c.append(list(map(int, input().split())))
a= list(map(int, input().split()))
b=list(map(int, input().split()))
c=list(map(int, input().split()))
count = int(input())
for num in range(count):
x = int(input())
for y in rang... |
#a.append(list(map(int, input().split())))
#b.append(list(map(int, input().split())))
#c.append(list(map(int, input().split())))
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))
count = int(input())
for num in range(count):
x = int(input())
for y in... | [
"identifier.change",
"call.function.change"
] | 548,669 | 548,670 | u679970524 | python |
p02760 | card = list()
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
card.append(a1)
card.append(a2)
card.append(a3)
res = list()
res1 = list(False for i in range(3))
res2 = list(False for i in range(3))
res3 = list(False for i in range(3))
re... | card = list()
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
card.append(a1)
card.append(a2)
card.append(a3)
res = list()
res1 = list(False for i in range(3))
res2 = list(False for i in range(3))
res3 = list(False for i in range(3))
re... | [
"identifier.change"
] | 548,671 | 548,672 | u860855494 | python |
p02760 | card = list()
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
card.append(a1)
card.append(a2)
card.append(a3)
res = list()
res1 = list(False for i in range(3))
res2 = list(False for i in range(3))
res3 = list(False for i in range(3))
re... | card = list()
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
card.append(a1)
card.append(a2)
card.append(a3)
res = list()
res1 = list(False for i in range(3))
res2 = list(False for i in range(3))
res3 = list(False for i in range(3))
re... | [
"identifier.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 548,673 | 548,672 | u860855494 | python |
p02760 | import numpy as np
import re, sys
A = np.zeros((3,3), dtype=int)
for i in range(3):
row = input()
nums = re.split(' ', row)
for j in range(3):
A[i, j] = int(nums[j])
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
for i in range(3):
if len(set(A[i]) & set(b)) == 3 | len(set(A[:,i]) & set... | import numpy as np
import re, sys
A = np.zeros((3,3), dtype=int)
for i in range(3):
row = input()
nums = re.split(' ', row)
for j in range(3):
A[i, j] = int(nums[j])
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
for i in range(3):
if len(set(A[i]) & set(b)) == 3 or len(set(A[:,i]) & se... | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 548,678 | 548,679 | u372320597 | python |
p02760 | import numpy as np
import re, sys
A = np.zeros((3,3), dtype=int)
for i in range(3):
row = input()
nums = re.split(' ', row)
for j in range(3):
A[i, j] = int(nums[j])
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
for i in range(3):
if len(set(A[i]) & set(b)) == 3 | len(set(A[:,i]) & set... | import numpy as np
import re, sys
A = np.zeros((3,3), dtype=int)
for i in range(3):
row = input()
nums = re.split(' ', row)
for j in range(3):
A[i, j] = int(nums[j])
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
for i in range(3):
if len(set(A[i]) & set(b)) == 3 or len(set(A[:,i]) & se... | [
"control_flow.branch.if.condition.change"
] | 548,680 | 548,679 | u372320597 | python |
p02760 | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
c = "check"
for i in range(n):
v = int(input())
ind = 0
if v in a1 :
ind = a1.index(v)
a1[ind] = c
if v in a2 :
ind = a2.index(v)
a2[ind] = c
... | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
c = "check"
for i in range(n):
v = int(input())
ind = 0
if v in a1 :
ind = a1.index(v)
a1[ind] = c
if v in a2 :
ind = a2.index(v)
a2[ind] = c
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,683 | 548,684 | u998082063 | python |
p02760 | A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
B = [list(map(int,input().split())) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if B[k][0] == A[i][j]:
A[i][j] = 0
if A[0][0] == A[0][1] == A[0][2] ==0:
print("Yes")
elif ... | A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
B = [list(map(int,input().split())) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if B[k][0] == A[i][j]:
A[i][j] = 0
if A[0][0] == A[0][1] == A[0][2] ==0:
print("Yes")
elif ... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,685 | 548,686 | u096294926 | python |
p02760 | A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
B = [list(map(int,input().split())) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if B[k][0] == A[i][j]:
A[i][j] = 0
if A[0][0] == A[0][1] == A[0][2] ==0:
print("Yes")
eli... | A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
B = [list(map(int,input().split())) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if B[k][0] == A[i][j]:
A[i][j] = 0
if A[0][0] == A[0][1] == A[0][2] ==0:
print("Yes")
elif ... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,687 | 548,686 | u096294926 | python |
p02760 | # -*- coding: utf-8 -*-
a = []
for i in range(3):
tmp = input()
a.append(list(map(int, tmp.split())))
n = int(input())
# print('n', n)
b = []
for j in range(n):
b.append(int(input()))
# print('a', a)
# print('b', b)
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
d... | # -*- coding: utf-8 -*-
a = []
for i in range(3):
tmp = input()
a.append(list(map(int, tmp.split())))
n = int(input())
# print('n', n)
b = []
for j in range(n):
b.append(int(input()))
# print('a', a)
# print('b', b)
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
d... | [
"control_flow.branch.if.condition.change"
] | 548,693 | 548,694 | u937782958 | python |
p02760 | import numpy as np
N = []
FLAGS = True
for i in range(3):
N1 = list(map(int, input().split(' ')))
N.append(N1)
N = np.array(N)
M = int(input())
for i in range(M):
a = int(input())
for j in range(3):
for k in range(3):
if N[j, k] == a:
N[j, k] = 0
if (np.all(N == 0, axis = 0).any(0)) or... | import numpy as np
N = []
FLAGS = True
for i in range(3):
N1 = list(map(int, input().split(' ')))
N.append(N1)
N = np.array(N)
M = int(input())
for i in range(M):
a = int(input())
for j in range(3):
for k in range(3):
if N[j, k] == a:
N[j, k] = 0
if (np.all(N == 0, axis = 0).any(0)) or... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 548,699 | 548,700 | u652522621 | python |
p02760 | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N =int(input())
B = []
for _ in range(N):
B.append(int(input()))
a=str('yes')
b=str('no')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in... | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N =int(input())
B = []
for _ in range(N):
B.append(int(input()))
a=str('Yes')
b=str('No')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in... | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change",
"call.arguments.change"
] | 548,705 | 548,706 | u519922200 | python |
p02760 | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N =int(input())
B = []
for _ in range(N):
B.append(input())
a=str('yes')
b=str('no')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in B:
... | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N =int(input())
B = []
for _ in range(N):
B.append(int(input()))
a=str('Yes')
b=str('No')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in... | [
"call.add",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 548,707 | 548,706 | u519922200 | python |
p02760 | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N = int(input())
B = []
for _ in range(N):
B.append(input())
a=str('yes')
b=str('no')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in... | A1_1,A1_2,A1_3 = map(int, input().split())
A2_1,A2_2,A2_3 = map(int, input().split())
A3_1,A3_2,A3_3 = map(int, input().split())
N =int(input())
B = []
for _ in range(N):
B.append(int(input()))
a=str('Yes')
b=str('No')
if A1_1 in B and A1_2 in B and A1_3 in B:
print(a)
elif A2_1 in B and A2_2 in B and A2_3 in... | [
"call.add",
"call.arguments.change",
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 548,708 | 548,706 | u519922200 | python |
p02760 | l=[]
for i in range(3):
l.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
m = int(input())
for j in range(3):
for k in range(3):
if l[j][k] == m:
l[j][k] = -1
o=0
p=0
for j in range(3):
for k in range(3):
o+=l[j][k]
p+=l[k]... | l=[]
for i in range(3):
l.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
m = int(input())
for j in range(3):
for k in range(3):
if l[j][k] == m:
l[j][k] = -1
o=0
p=0
for j in range(3):
for k in range(3):
o+=l[j][k]
p+=l[k]... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 548,709 | 548,710 | u952854963 | python |
p02760 | l=[]
for i in range(3):
l.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
m = int(input())
for j in range(3):
for k in range(3):
if l[j][k] == m:
l[j][k] = -1
o=0
p=0
for j in range(3):
for k in range(3):
o+=l[j][k]
p+=l[k]... | l=[]
for i in range(3):
l.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
m = int(input())
for j in range(3):
for k in range(3):
if l[j][k] == m:
l[j][k] = -1
o=0
p=0
for j in range(3):
for k in range(3):
o+=l[j][k]
p+=l[k]... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 548,711 | 548,710 | u952854963 | python |
p02760 | def q2(data, num_list):
data = [int(num) for d in data for num in d.split()]
num_list = [int(n) for n in num_list]
for num in num_list:
data = [d if d != num else 0 for d in data]
if check_bingo(data):
return 'Yes'
else:
return 'No'
def check_bingo(data):
# ca... | def q2(data, num_list):
data = [int(num) for d in data for num in d.split()]
num_list = [int(n) for n in num_list]
for num in num_list:
data = [d if d != num else 0 for d in data]
if check_bingo(data):
return 'Yes'
else:
return 'No'
def check_bingo(data):
# ca... | [
"control_flow.branch.if.condition.change"
] | 548,714 | 548,715 | u077229945 | python |
p02760 | import numpy as np
A = np.zeros((3,3), dtype = "int")
A[0,0], A[0,1], A[0,2] = map(int,input().split())
A[1,0], A[1,1], A[1,2] = map(int,input().split())
A[2,0], A[2,1], A[2,2] = map(int,input().split())
N= int(input())
b = [int(input()) for i in range(N)]
for i in range(3):
for j in range(3):
for k in range(N):
... | import numpy as np
A = np.zeros((3,3), dtype = "int")
A[0,0], A[0,1], A[0,2] = map(int,input().split())
A[1,0], A[1,1], A[1,2] = map(int,input().split())
A[2,0], A[2,1], A[2,2] = map(int,input().split())
N= int(input())
b = [int(input()) for i in range(N)]
for i in range(3):
for j in range(3):
for k in range(N):
... | [
"control_flow.branch.if.condition.change"
] | 548,716 | 548,717 | u485673106 | python |
p02760 | lines = [input().split() for i in range(3)]
num = int(input())
bs = []
for i in range(num):
bs.append(input())
hits = []
for i in bs:
for row_index in range(len(lines)):
for col_index in range(len(lines[row_index])):
if lines[row_index][col_index] == i:
hits.append((row_index,col_index))
row_h... | lines = [input().split() for i in range(3)]
num = int(input())
bs = []
for i in range(num):
bs.append(input())
hits = []
for i in bs:
for row_index in range(len(lines)):
for col_index in range(len(lines[row_index])):
if lines[row_index][col_index] == i:
hits.append((row_index,col_index))
row_h... | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 548,727 | 548,728 | u260887519 | python |
p02760 | l=[]
for i in range(3):
l.extend(list(map(int,input().split())))
n = int(input())
b = [int(input()) for i in range(n)]
c = []
for ii in range(n):
for iii in range(9):
if b[ii] == l[iii]:
c.append(iii)
break
flag = 'No'
for j in range(3):
if 3*i in c and 3*i+1 in c and 3*... | l=[]
for i in range(3):
l.extend(list(map(int,input().split())))
n = int(input())
b = [int(input()) for i in range(n)]
c = []
for ii in range(n):
for iii in range(9):
if b[ii] == l[iii]:
c.append(iii)
break
flag = 'No'
for i in range(3):
if 3*i in c and 3*i+1 in c and 3*... | [
"identifier.change"
] | 548,729 | 548,730 | u160459241 | python |
p02760 | import numpy as np
def in1d(ar1, ar2, assume_unique=False, invert=False):
# Ravel both arrays, behavior for the first array could be different
ar1 = np.asarray(ar1).ravel()
ar2 = np.asarray(ar2).ravel()
# Check if one of the arrays may contain arbitrary objects
contains_object = ar1.dtype.hasobjec... | import numpy as np
def in1d(ar1, ar2, assume_unique=False, invert=False):
# Ravel both arrays, behavior for the first array could be different
ar1 = np.asarray(ar1).ravel()
ar2 = np.asarray(ar2).ravel()
# Check if one of the arrays may contain arbitrary objects
contains_object = ar1.dtype.hasobjec... | [
"assignment.value.change",
"identifier.change"
] | 548,733 | 548,734 | u193657135 | python |
p02760 | import numpy as np
def in1d(ar1, ar2, assume_unique=False, invert=False):
# Ravel both arrays, behavior for the first array could be different
ar1 = np.asarray(ar1).ravel()
ar2 = np.asarray(ar2).ravel()
# Check if one of the arrays may contain arbitrary objects
contains_object = ar1.dtype.hasobjec... | import numpy as np
def in1d(ar1, ar2, assume_unique=False, invert=False):
# Ravel both arrays, behavior for the first array could be different
ar1 = np.asarray(ar1).ravel()
ar2 = np.asarray(ar2).ravel()
# Check if one of the arrays may contain arbitrary objects
contains_object = ar1.dtype.hasobjec... | [
"call.remove",
"assignment.value.change",
"identifier.change"
] | 548,735 | 548,734 | u193657135 | python |
p02760 | As = [list(map(int, input().split())) for x in range(3)]
N = int(input())
bs = [int(input()) for x in range(N)]
def create_bingo_card():
result = [[0, 0, 0] for x in range(3)]
i = 0
while True:
i2 = 0
while True:
if bs[i2] in As[i]:
result[i][As[i].index(bs[i2])] += 1
i2 += 1
i... | As = [list(map(int, input().split())) for x in range(3)]
N = int(input())
bs = [int(input()) for x in range(N)]
def create_bingo_card():
result = [[0, 0, 0] for x in range(3)]
i = 0
while True:
i2 = 0
while True:
if bs[i2] in As[i]:
result[i][As[i].index(bs[i2])] += 1
i2 += 1
i... | [] | 548,740 | 548,739 | u599925824 | python |
p02760 | As = [list(map(int, input().split())) for x in range(3)]
N = int(input())
bs = [int(input()) for x in range(N)]
def create_bingo_card():
result = [[0, 0, 0] for x in range(3)]
i = 0
while True:
i2 = 0
while True:
if bs[i2] in As[i]:
result[i][As[i].index(bs[i2])] += 1
i2 += 1
i... | As = [list(map(int, input().split())) for x in range(3)]
N = int(input())
bs = [int(input()) for x in range(N)]
def create_bingo_card():
result = [[0, 0, 0] for x in range(3)]
i = 0
while True:
i2 = 0
while True:
if bs[i2] in As[i]:
result[i][As[i].index(bs[i2])] += 1
i2 += 1
i... | [
"call.remove"
] | 548,741 | 548,739 | u599925824 | python |
p02760 | input1 = list(map(int, (input().split())))
input2 = list(map(int, (input().split())))
input3 = list(map(int, (input().split())))
a = input1 + input2 + input3
n = int(input())
b = []
for i in range(n):
b.append(int(input()))
for s in b:
for i in range(9):
if a[i] == s:
a[i] = 0
for i in ... | input1 = list(map(int, (input().split())))
input2 = list(map(int, (input().split())))
input3 = list(map(int, (input().split())))
a = input1 + input2 + input3
n = int(input())
b = []
for i in range(n):
b.append(int(input()))
# print(b)
for s in b:
for i in range(9):
if a[i] == s:
a[i] = 0... | [
"call.remove"
] | 548,759 | 548,760 | u154473588 | python |
p02760 | import sys
f = sys.stdin
l1 = f.readline().rstrip().split(" ")
l2 = f.readline().rstrip().split(" ")
l3 = f.readline().rstrip().split(" ")
mat = l1 + l2 + l3
f.readline() #skip N
nums = []
for line in f.readlines():
nums.append(line.rstrip())
#check
def check(kohos, n1, n2, n3):
kohos = set(kohos)
if... | import sys
f = sys.stdin
l1 = f.readline().rstrip().split(" ")
l2 = f.readline().rstrip().split(" ")
l3 = f.readline().rstrip().split(" ")
mat = l1 + l2 + l3
f.readline() #skip N
nums = []
for line in f.readlines():
nums.append(line.rstrip())
#check
def check(kohos, n1, n2, n3):
kohos = set(kohos)
if... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 548,762 | 548,763 | u364283234 | python |
p02760 | l = [list(map(int,input().split())) for _ in range(3)]
lb = [[0 for j in range(3)] for i in range(3)]
bl = []
cnt = 0
f = 0
# print(l)
# print(lb)
n = int(input())
for i in range(n):
bl.append(int(input()))
bll = list(dict.fromkeys(bl))
# print(bll)
for i in bll:
for j in range(3):
for k in range(3... | l = [list(map(int,input().split())) for _ in range(3)]
lb = [[0 for j in range(3)] for i in range(3)]
bl = []
cnt = 0
f = 0
# print(l)
# print(lb)
n = int(input())
for i in range(n):
bl.append(int(input()))
bll = list(dict.fromkeys(bl))
# print(bll)
for i in bll:
for j in range(3):
for k in range(3... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,766 | 548,767 | u185502200 | python |
p02760 | import itertools
import sys
[a,b,c] = [int(x) for x in input().split()]
[d,e,f] = [int(x) for x in input().split()]
[g,h,i] = [int(x) for x in input().split()]
N = int(input())
num_list = []
for i in range(N):
n = int(input())
num_list.append(n)
set_list = [{a,b,c},{d,e,f},{g,h,i},{a,d,g},{b,e,h},{c,f,i},{a,e,i},{... | import itertools
import sys
[a,b,c] = [int(x) for x in input().split()]
[d,e,f] = [int(x) for x in input().split()]
[g,h,i] = [int(x) for x in input().split()]
N = int(input())
num_list = []
for j in range(N):
n = int(input())
num_list.append(n)
set_list = [{a,b,c},{d,e,f},{g,h,i},{a,d,g},{b,e,h},{c,f,i},{a,e,i},... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.arguments.add"
] | 548,772 | 548,773 | u250362126 | python |
p02760 | A=[]
for i in range(3):
A.append(list(map(int,input().split())))
N=int(input())
B=[]
for _ in range(N):
B.append(int(input()))
# まず横の列を検索する
bingo=False
for i in range(3):
for j in range(3):
if not A[i][j] in B:
break
if j == 2:
bingo=True
# 次に縦の列を検索する
for i in range... | A=[]
for i in range(3):
A.append(list(map(int,input().split())))
N=int(input())
B=[]
for _ in range(N):
B.append(int(input()))
# まず横の列を検索する
bingo=False
for i in range(3):
for j in range(3):
if not A[i][j] in B:
break
if j == 2:
bingo=True
# 次に縦の列を検索する
for i in range... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 548,774 | 548,775 | u797106134 | python |
p02760 | l=[list(map(int,input().split())) for i in range(3)]
N=int(input())
b=[input() for i in range(N)]
if b.count(l[0][0])>0 and b.count(l[0][1])>0 and b.count(l[0][2])>0:
print("Yes")
exit()
if b.count(l[1][0])>0 and b.count(l[1][1])>0 and b.count(l[1][2])>0:
print("Yes")
exit()
if b.count(l[2][0])>0 and b.... | l=[list(map(int,input().split())) for i in range(3)]
N=int(input())
b=[int(input()) for i in range(N)]
if b.count(l[0][0])>0 and b.count(l[0][1])>0 and b.count(l[0][2])>0:
print("Yes")
exit()
if b.count(l[1][0])>0 and b.count(l[1][1])>0 and b.count(l[1][2])>0:
print("Yes")
exit()
if b.count(l[2][0])>0 a... | [
"call.add",
"call.arguments.change"
] | 548,792 | 548,793 | u871934301 | python |
p02760 | l=[list(map(int,input().split())) for i in ramge(3)]
N=int(input())
b=[input() for i in range(N)]
if b.count(l[0][0])>0 and b.count(l[0][1])>0 and b.count(l[0][2])>0:
print("Yes")
exit()
if b.count(l[1][0])>0 and b.count(l[1][1])>0 and b.count(l[1][2])>0:
print("Yes")
exit()
if b.count(l[2][0])>0 and b.... | l=[list(map(int,input().split())) for i in range(3)]
N=int(input())
b=[int(input()) for i in range(N)]
if b.count(l[0][0])>0 and b.count(l[0][1])>0 and b.count(l[0][2])>0:
print("Yes")
exit()
if b.count(l[1][0])>0 and b.count(l[1][1])>0 and b.count(l[1][2])>0:
print("Yes")
exit()
if b.count(l[2][0])>0 a... | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.add",
"call.arguments.change"
] | 548,794 | 548,793 | u871934301 | python |
p02760 | def resolve():
a = list(map(int, input().split()))
a.extend(list(map(int, input().split())))
a.extend(list(map(int, input().split())))
n = int(input())
for i in range(n):
b = int(input())
for j in range(len(a)):
if a[j] == b:
a[j] = -1
x1 = a[0:3].coun... | def resolve():
a = list(map(int, input().split()))
a.extend(list(map(int, input().split())))
a.extend(list(map(int, input().split())))
n = int(input())
for i in range(n):
b = int(input())
for j in range(len(a)):
if a[j] == b:
a[j] = -1
x1 = a[0:3].coun... | [
"call.add"
] | 548,795 | 548,796 | u822961851 | python |
p02760 | A = []
B = set()
ans = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(3):
A.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
B.add(int(input()))
for i in range(3):
for j in range(3):
if A[i][j] in B:
ans[i][j] = 1
#ゴミコードだなぁ……
if ans[0][0] + ans[0][1] + ans[0][2] =... | A = []
B = set()
ans = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(3):
A.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
B.add(int(input()))
for i in range(3):
for j in range(3):
if A[i][j] in B:
ans[i][j] = 1
#ゴミコードだなぁ……
if ans[0][0] + ans[0][1] + ans[0][2] =... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,809 | 548,810 | u297046168 | python |
p02760 | A = []
B = set()
ans = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(3):
A.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
B.add(int(input()))
for i in range(3):
for j in range(3):
if A[i][j] in B:
ans[i][j] = 1
#ゴミコードだなぁ……
if ans[0][0] + ans[0][1] + ans[0][2] =... | A = []
B = set()
ans = [[0,0,0],[0,0,0],[0,0,0]]
for i in range(3):
A.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
B.add(int(input()))
for i in range(3):
for j in range(3):
if A[i][j] in B:
ans[i][j] = 1
#ゴミコードだなぁ……
if ans[0][0] + ans[0][1] + ans[0][2] =... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 548,811 | 548,810 | u297046168 | python |
p02760 | yoko_1 = [int(i) for i in input().split()]
yoko_2 = [int(i) for i in input().split()]
yoko_3 = [int(i) for i in input().split()]
tate_1 = [yoko_1[0], yoko_2[0], yoko_3[0]]
tate_2 = [yoko_1[1], yoko_2[1], yoko_3[1]]
tate_3 = [yoko_1[2], yoko_2[2], yoko_3[2]]
naname_1 = [yoko_1[0], yoko_2[1], yoko_3[2]]
naname_2 = [yoko_... | # coding: utf-8
# Your code here!
yoko_1 = [int(i) for i in input().split()]
yoko_2 = [int(i) for i in input().split()]
yoko_3 = [int(i) for i in input().split()]
tate_1 = [yoko_1[0], yoko_2[0], yoko_3[0]]
tate_2 = [yoko_1[1], yoko_2[1], yoko_3[1]]
tate_3 = [yoko_1[2], yoko_2[2], yoko_3[2]]
naname_1 = [yoko_1[0], yoko... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 548,814 | 548,815 | u864711178 | python |
p02760 | a = [list(map(int,input().split())) for i in range(3)]
for i in range(int(input())):
i = int(input())
bo = True
while(bo):
for k,a_1 in enumerate(a[0]):
if a_1 == i:
a[0][k] = None
bo = False
for k,a_2 in enumerate(a[1]):
if a_2 == i:
a[1][k] = None
bo = False
... | a = [list(map(int,input().split())) for i in range(3)]
for i in range(int(input())):
i = int(input())
bo = True
while(bo):
for k,a_1 in enumerate(a[0]):
if a_1 == i:
a[0][k] = None
bo = False
for k,a_2 in enumerate(a[1]):
if a_2 == i:
a[1][k] = None
bo = False
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,818 | 548,819 | u867826040 | python |
p02760 | bingo = []
for i in range(3):
bingo.append(list(map(int,input().split())))
N = int(input())
for i in range(N):
b = int(input())
for j in range(3):
for k in range(3):
if bingo[j][k] == b:
bingo[j][k] = 0
flag = False
for i in range(3):
tmp = 0
for j in range(3):
... | bingo = []
for i in range(3):
bingo.append(list(map(int,input().split())))
N = int(input())
for i in range(N):
b = int(input())
for j in range(3):
for k in range(3):
if bingo[j][k] == b:
bingo[j][k] = 0
flag = False
for i in range(3):
tmp = 0
for j in range(3):
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,820 | 548,821 | u841621946 | python |
p02760 | import sys
bingo = [[],[],[]]
for i in range(3):
a, b, c = map(int,input().split())
bingo[i].append(a)
bingo[i].append(b)
bingo[i].append(c)
N = int(input())
for i in range(N):
S = int(input())
for j in range(3):
if S in bingo[j]:
for k in range(3):
if S == bingo[j][k]:
b... | import sys
bingo = [[],[],[]]
for i in range(3):
a, b, c = map(int,input().split())
bingo[i].append(a)
bingo[i].append(b)
bingo[i].append(c)
N = int(input())
for i in range(N):
S = int(input())
for j in range(3):
if S in bingo[j]:
for k in range(3):
if S == bingo[j][k]:
b... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 548,838 | 548,839 | u547115759 | python |
p02760 | import sys
bingo = [[],[],[]]
for i in range(3):
a, b, c = map(int,input().split())
bingo[i].append(a)
bingo[i].append(b)
bingo[i].append(c)
N = int(input())
for i in range(N):
S = int(input())
for j in range(3):
if S in bingo[j]:
for k in range(3):
if S == bingo[j][k]:
b... | import sys
bingo = [[],[],[]]
for i in range(3):
a, b, c = map(int,input().split())
bingo[i].append(a)
bingo[i].append(b)
bingo[i].append(c)
N = int(input())
for i in range(N):
S = int(input())
for j in range(3):
if S in bingo[j]:
for k in range(3):
if S == bingo[j][k]:
b... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 548,840 | 548,839 | u547115759 | python |
p02760 | import sys
input = sys.stdin.readline
def main():
bingo = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
bn = [int(input()) for _ in range(N)]
hit = [[0] * 3 for _ in range(3)]
cnt = 0
hitz = []
hzb, hb = False, False
for b in bn:
for v, i in enumerate(bi... | import sys
input = sys.stdin.readline
def main():
bingo = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
bn = [int(input()) for _ in range(N)]
hit = [[0] * 3 for _ in range(3)]
cnt = 0
hitz = []
hzb, hb = False, False
for b in bn:
for v, i in enumerate(bi... | [
"call.remove"
] | 548,843 | 548,844 | u743164083 | python |
p02760 | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
n = int(input())
b=[int(input()) for i in range(n)]
aa = []
aa.append(a1)
aa.append(a2)
aa.append(a3)
a = aa[:]
for _ in range(n):
for i in range(3):
for j in range(3):
if aa[i][j] == b[_]:
... | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
n = int(input())
b=[int(input()) for i in range(n)]
aa = []
aa.append(a1)
aa.append(a2)
aa.append(a3)
a = aa[:]
for _ in range(n):
for i in range(3):
for j in range(3):
if aa[i][j] == b[_]:
... | [
"control_flow.branch.if.replace.remove",
"control_flow.branch.else_if.replace.add"
] | 548,846 | 548,847 | u386439695 | python |
p02760 | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
n = int(input())
b=[int(input()) for i in range(n)]
aa = []
aa.append(a1)
aa.append(a2)
aa.append(a3)
a = aa[:]
for _ in range(n):
for i in range(3):
for j in range(3):
if aa[i][j] == b[_]:
... | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
n = int(input())
b=[int(input()) for i in range(n)]
aa = []
aa.append(a1)
aa.append(a2)
aa.append(a3)
a = aa[:]
for _ in range(n):
for i in range(3):
for j in range(3):
if aa[i][j] == b[_]:
... | [
"control_flow.branch.if.replace.remove",
"control_flow.branch.else_if.replace.add",
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,848 | 548,847 | u386439695 | python |
p02760 | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
result = 'No'
n = int(input())
for i in range(n):
In = int(input())
a1 = ['' if a1[j] == In else a1[j] for j in range(3)]
a2 = ['' if a2[j] == In else a2[j] for j in range(3)]
a3 = ['' if a3[j] == In... | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
result = 'No'
n = int(input())
for i in range(n):
In = int(input())
a1 = ['' if a1[j] == In else a1[j] for j in range(3)]
a2 = ['' if a2[j] == In else a2[j] for j in range(3)]
a3 = ['' if a3[j] == In... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,851 | 548,850 | u393881437 | python |
p02760 | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
result = 'No'
n = int(input())
for i in range(n):
In = int(input())
a1 = ['' if a1[j] == In else a1[j] for j in range(3)]
a2 = ['' if a2[j] == In else a2[j] for j in range(3)]
a3 = ['' if a3[j] == In... | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
result = 'No'
n = int(input())
for i in range(n):
In = int(input())
a1 = ['' if a1[j] == In else a1[j] for j in range(3)]
a2 = ['' if a2[j] == In else a2[j] for j in range(3)]
a3 = ['' if a3[j] == In... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,852 | 548,850 | u393881437 | python |
p02760 | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, i = map(int, input().split())
num_count = int(input())
number_list = [0] * num_count
for i in range(num_count):
number_list[i] = int(input())
bingo_map = [[a, b, c], [d, e, f], [g, h, i]]
bingo_answer = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
... | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, x = map(int, input().split())
num_count = int(input())
number_list = [0] * num_count
for i in range(num_count):
number_list[i] = int(input())
bingo_map = [[a, b, c], [d, e, f], [g, h, x]]
bingo_answer = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
... | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change"
] | 548,853 | 548,854 | u651314218 | python |
p02760 | import math
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
a = []
a.append(a1)
a.append(a2)
a.append(a3)
n = int(input())
b = []
for _ in range(n):
b.append(int(input()))
bingo = [ [0 for _ in range(3)] for __ in range(3)]
for bt in b:
for i, at in ... | import math
a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
a = []
a.append(a1)
a.append(a2)
a.append(a3)
n = int(input())
b = []
for _ in range(n):
b.append(int(input()))
bingo = [ [0 for _ in range(3)] for __ in range(3)]
for bt in b:
for i, at in ... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,855 | 548,856 | u051401873 | python |
p02760 | a = input().split()
a += input().split()
a += input().split()
n = int(input())
b = set([(input()) for i in range(n)])
bingo = False
if set([a[0], a[1], a[2]]).issubset(b):
bingo = True
if set([a[3], a[4], a[5]]).issubset(b):
bingo = True
if set([a[6], a[7], a[8]]).issubset(b):
bingo = True
if set([a[0], a[3], a[6]]... | a = input().split()
a += input().split()
a += input().split()
n = int(input())
b = set([(input()) for i in range(n)])
bingo = False
if set([a[0], a[1], a[2]]).issubset(b):
bingo = True
if set([a[3], a[4], a[5]]).issubset(b):
bingo = True
if set([a[6], a[7], a[8]]).issubset(b):
bingo = True
if set([a[0], a[3], a[6]]... | [] | 548,865 | 548,866 | u303739137 | python |
p02760 | #!/usr/bin/env pypy3
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
A=[[] for _ in range(3)]
for i in range(3):
A[i]=LI()
N=I()
for _ in range(N):
b=I()
for i in range(3):
... | #!/usr/bin/env pypy3
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
A=[[] for _ in range(3)]
for i in range(3):
A[i]=LI()
N=I()
for _ in range(N):
b=I()
for i in range(3):
... | [
"identifier.change"
] | 548,869 | 548,870 | u498487134 | python |
p02760 | # B
a = []
for i in range(3):
a1, a2, a3 = map(int, input().split())
a.append(a1)
a.append(a2)
a.append(a3)
print(a)
n = int(input())
b = []
for i in range(n):
bb = int(input())
b.append(bb)
for i in range(n):
while a.count(b[i]) > 0:
a[a.index(b[i])] = 0
if a... | # B
a = []
for i in range(3):
a1, a2, a3 = map(int, input().split())
a.append(a1)
a.append(a2)
a.append(a3)
n = int(input())
b = []
for i in range(n):
bb = int(input())
b.append(bb)
for i in range(n):
while a.count(b[i]) > 0:
a[a.index(b[i])] = 0
if a[0] == a[3] ==... | [
"call.remove"
] | 548,877 | 548,878 | u721425712 | python |
p02760 | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = list()
A.extend(A1)
A.extend(A2)
A.extend(A3)
N = int(input())
B = list()
result = list()
for _ in range(N):
B.append(int(input()))
for e in B:
if e in A:
result.append(A.index(e))
loopflag... | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = list()
A.extend(A1)
A.extend(A2)
A.extend(A3)
N = int(input())
B = list()
result = list()
for _ in range(N):
B.append(int(input()))
for e in B:
if e in A:
result.append(A.index(e))
loopflag... | [
"call.remove"
] | 548,879 | 548,880 | u917733926 | python |
p02760 | A11, A12, A13=list(map(int,input().split()))
A21, A22, A23=list(map(int,input().split()))
A31, A32, A33=list(map(int,input().split()))
N=int(input())
b=[input() for i in range(N)]
if A11 in b and A12 in b and A13 in b:
print('Yes')
elif A21 in b and A22 in b and A23 in b:
print('Yes')
elif A31 in b and A32 in b... | A11, A12, A13=list(map(int,input().split()))
A21, A22, A23=list(map(int,input().split()))
A31, A32, A33=list(map(int,input().split()))
N=int(input())
b=[int(input()) for i in range(N)]
if A11 in b and A12 in b and A13 in b:
print('Yes')
elif A21 in b and A22 in b and A23 in b:
print('Yes')
elif A31 in b and A32... | [
"call.add",
"call.arguments.change"
] | 548,889 | 548,890 | u209313313 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for l in range(n)]
a = a[0] + a[1] + a[2]
A = [False]*9
for h in range(len(a)):
A[h] = a[h] in b
flag = 'No'
for k in range(3):
if A[k] == A[k+1] == A[k+2] == True:
flag = 'Yes'
if A[k] == A[k+3] == A[k+6] == True:
... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for l in range(n)]
a = a[0] + a[1] + a[2]
A = [False]*9
for h in range(len(a)):
A[h] = a[h] in b
flag = 'No'
for k in range(3):
if A[k*3] == A[k*3+1] == A[k*3+2] == True:
flag = 'Yes'
if A[k] == A[k+3] == A[k+6] == T... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 548,893 | 548,894 | u163501259 | python |
p02760 | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = np.array([A1, A2, A3])
N = int(input())
for i in range(N):
B = int(input())
A[A==B] = 0
result = 'No'
for i in range(3):
if A[i].sum()==0:
result = 'Yes'
... | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = np.array([A1, A2, A3])
N = int(input())
for i in range(N):
B = int(input())
A[A==B] = 0
result = 'No'
for i in range(3):
if A[i].sum()==0:
result = 'Yes'
... | [
"control_flow.branch.if.condition.change"
] | 548,899 | 548,900 | u620157187 | python |
p02760 | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
yoko = A
tate = [[], [], []]
for row in A:
for i in range(3):
tate[i].append(row[i])
naname = [[A[0][0], A[1][1], A[2][2]], [A[0][3], A[1][1], A[2][0]]]
all = yoko + tate + naname
y = 0
chk ... | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
yoko = A
tate = [[], [], []]
for row in A:
for i in range(3):
tate[i].append(row[i])
naname = [[A[0][0], A[1][1], A[2][2]], [A[0][2], A[1][1], A[2][0]]]
all = yoko + tate + naname
y = 0
chk ... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change"
] | 548,901 | 548,902 | u601575292 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
for i in range(N):
b = int(input())
for j in range(3):
for k in range(3):
if A[j][k] == b:
A[j][k] = "x"
if A[0] == ["x","x","x"]:
print("Yes")
elif A[1] == ["x","x","x"]:
print("Yes")
elif A[2] == ["x","x","x"]:
print(... | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
for i in range(N):
b = int(input())
for j in range(3):
for k in range(3):
if A[j][k] == b:
A[j][k] = "x"
else:
pass
if A[0] == ["x","x","x"]:
print("Yes")
elif A[1] == ["x","x","x"]:
print("Yes")
elif A[2] =... | [
"control_flow.pass.add",
"identifier.change",
"call.function.change"
] | 548,903 | 548,904 | u870559097 | python |
p02760 | a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))
N = int(input())
a = a + b + c
list = []
for i in range(N):
b = int(input())
list.append(b)
b = [0,0,0,0,0,0,0,0,0]
for i in range(len(a)):
for j in range(len(list)):
if a[i] == list[j]:
... | a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))
N = int(input())
a = a + b + c
list = []
for i in range(N):
b = int(input())
list.append(b)
b = [0,0,0,0,0,0,0,0,0]
for i in range(len(a)):
for j in range(len(list)):
if a[i] == list[j]:
... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 548,916 | 548,917 | u328067859 | python |
p02760 | import numpy as np
a1,a2,a3 = map(int,input().split())
a4,a5,a6 = map(int,input().split())
a7,a8,a9 = map(int,input().split())
a = np.array([[a1, a2, a3], [a4, a5, a6], [a7, a8, a9]])
n = int(input())
for i in range(n):
b = int(input())
a = np.where(a == b, 0, a)
print(a)
if a[0,0] + a[0,1] + a[0,2] == 0:
pr... | import numpy as np
a1,a2,a3 = map(int,input().split())
a4,a5,a6 = map(int,input().split())
a7,a8,a9 = map(int,input().split())
a = np.array([[a1, a2, a3], [a4, a5, a6], [a7, a8, a9]])
n = int(input())
for i in range(n):
b = int(input())
a = np.where(a == b, 0, a)
if a[0,0] + a[0,1] + a[0,2] == 0:
print("Yes")... | [
"call.remove"
] | 548,922 | 548,923 | u270983294 | python |
p02760 | A = [list(map(int,input().split())) for _ in range(3)]
ans = [[0]*3 for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
for num in b:
for i in range(3):
for j in range(3):
if A[i][j] == num:
ans[i][j] = -1
break
def f(ans):
if yoko(ans) or tate(a... | A = [list(map(int,input().split())) for _ in range(3)]
ans = [[0]*3 for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
for num in b:
for i in range(3):
for j in range(3):
if A[i][j] == num:
ans[i][j] = -1
break
def f(ans):
if yoko(ans) or tate(a... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 548,926 | 548,927 | u952669998 | python |
p02760 | A = [list(map(int,input().split())) for _ in range(3)]
ans = [[0]*3 for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
for num in b:
for i in range(3):
for j in range(3):
if A[i][j] == num:
ans[i][j] = -1
break
def f(ans):
if yoko(ans) or tate(an... | A = [list(map(int,input().split())) for _ in range(3)]
ans = [[0]*3 for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
for num in b:
for i in range(3):
for j in range(3):
if A[i][j] == num:
ans[i][j] = -1
break
def f(ans):
if yoko(ans) or tate(a... | [
"identifier.change",
"variable_access.subscript.index.change",
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 548,928 | 548,927 | u952669998 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = []
for i in range(7):
b.append(int(input()))
flag = False
for i in range(3):
#for j in range(3):
if a[0 + i][0] in b and a[0 + i][1] in b and a[0 + i][2] in b:
#print('Yes')
#quit()
flag = True
for i in rang... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = []
for i in range(n):
b.append(int(input()))
flag = False
for i in range(3):
#for j in range(3):
if a[0 + i][0] in b and a[0 + i][1] in b and a[0 + i][2] in b:
#print('Yes')
#quit()
flag = True
for i in rang... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 548,929 | 548,930 | u038408819 | python |
p02760 | list1=[0]*3
list2=[0]*3
list3=[0]*3
list4=[0]*3
c=0
for i in range(3):
list1[i], list2[i], list3[i]= map(int, input().split())
n=int(input())
for j in range(n):
b=int(input())
if b in list1:
list1[list1.index(b)]=0
if b in list2:
list2[list2.index(b)]=0
if b in list3:
list3[... | list1=[0]*3
list2=[0]*3
list3=[0]*3
list4=[0]*3
c=0
for i in range(3):
list1[i], list2[i], list3[i]= map(int, input().split())
n=int(input())
for j in range(n):
b=int(input())
if b in list1:
list1[list1.index(b)]=0
if b in list2:
list2[list2.index(b)]=0
if b in list3:
list3[... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 548,931 | 548,932 | u941022948 | python |
p02760 | import sys
input = sys.stdin.readline
def main():
bingo_map = [[0] * 3 for _ in range(3)]
number_list = []
for _ in range(3):
A, B, C = map(int, input().split())
number_list.append(A)
number_list.append(B)
number_list.append(C)
N = int(input())
for _ in range(N):
... | import sys
input = sys.stdin.readline
def main():
bingo_map = [[0] * 3 for _ in range(3)]
number_list = []
for _ in range(3):
A, B, C = map(int, input().split())
number_list.append(A)
number_list.append(B)
number_list.append(C)
N = int(input())
for _ in range(N):
... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 548,952 | 548,953 | u528376608 | python |
p02760 | import sys
input = sys.stdin.readline
def main():
bingo_map = [[0] * 3 for _ in range(3)]
number_list = []
for _ in range(3):
A, B, C = map(int, input().split())
number_list.append(A)
number_list.append(B)
number_list.append(C)
N = int(input())
for _ in range(N):
... | import sys
input = sys.stdin.readline
def main():
bingo_map = [[0] * 3 for _ in range(3)]
number_list = []
for _ in range(3):
A, B, C = map(int, input().split())
number_list.append(A)
number_list.append(B)
number_list.append(C)
N = int(input())
for _ in range(N):
... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 548,954 | 548,953 | u528376608 | python |
p02760 | a = [[0 for i in range(3)] for j in range(3)]
for i in range(3):
a[i] = [int(j) for j in input().split()]
n = int(input())
b = [0] * n
for i in range(n):
b[i] = int(input())
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
f = 0
for i in range(3):
if sum(a[i]) =... | a = [[0 for i in range(3)] for j in range(3)]
for i in range(3):
a[i] = [int(j) for j in input().split()]
n = int(input())
b = [0] * n
for i in range(n):
b[i] = int(input())
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
f = 0
for i in range(3):
if sum(a[i]) =... | [] | 548,957 | 548,958 | u330314953 | python |
p02760 | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
b= [int(input()) for i in range(N)]
for i in range(N):
for j in range(3):
for k in range(3):
if b[i]==A[j][k]:
A[j][k]=0
List=[]
sum = 0
for i in range(3):
sum=0
for j in range(3):
... | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
b= [int(input()) for i in range(N)]
for i in range(N):
for j in range(3):
for k in range(3):
if b[i]==A[j][k]:
A[j][k]=0
List=[]
sum = 0
for i in range(3):
sum=0
for j in range(3):
... | [
"identifier.change"
] | 548,959 | 548,960 | u621509924 | python |
p02760 | import itertools
A = []
A1 = [int(i) for i in input().split()]
A.append(A1)
A2 = [int(i) for i in input().split()]
A.append(A2)
A3 = [int(i) for i in input().split()]
A.append(A3)
f = [[0] * 3 for i in range(3)]
#print(A)
N = int(input ())
b = [input().split() for i in range(N)]
b= list(itertools.chain.from_iterab... | import itertools
A = []
A1 = [int(i) for i in input().split()]
A.append(A1)
A2 = [int(i) for i in input().split()]
A.append(A2)
A3 = [int(i) for i in input().split()]
A.append(A3)
f = [[0] * 3 for i in range(3)]
#print(A)
N = int(input ())
b = [input().split() for i in range(N)]
b= list(itertools.chain.from_iterab... | [
"call.remove"
] | 548,965 | 548,966 | u989348352 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
for i in range(n):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
a[j][k] = 0
cross = 0
ucross = 0
for j in range(3):
if sum(a[j][:]) == 0 or sum([row[j] for ... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
for i in range(n):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
a[j][k] = 0
cross = 0
ucross = 0
for j in range(3):
if sum(a[j][:]) == 0 or sum([row[j] for row in a]) == 0... | [
"expression.operation.binary.remove"
] | 548,979 | 548,980 | u597455618 | python |
p02760 | import sys
def solve():
input = sys.stdin.readline
A = [[int(i) for i in input().split()] for _ in range(3)]
O = [[False] * 3 for _ in range(3)]
N = int(input())
for _ in range(N):
b = int(input())
for i in range(3):
for j in range(3):
if A[i][j] == b: O[... | import sys
def solve():
input = sys.stdin.readline
A = [[int(i) for i in input().split()] for _ in range(3)]
O = [[False] * 3 for _ in range(3)]
N = int(input())
for _ in range(N):
b = int(input())
for i in range(3):
for j in range(3):
if A[i][j] == b: O[... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,981 | 548,982 | u608088992 | python |
p02760 | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | [
"call.remove"
] | 548,989 | 548,990 | u617037231 | python |
p02760 | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 548,991 | 548,990 | u617037231 | python |
p02760 | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | import sys
L = []
bingo = set()
Numbers = []
testor = 0
for i in range(3):
a,b,c = map(int,input().split())
L.append((a,b,c)) #00 10 20/ 01 11 21/ 02 12 22/00 11 22/ 20 11 02/
N = int(input())
for i in range(3):
a = L[0][i]
b = L[1][i]
c = L[2][i]
L.append((a,b,c))
a = L[0][0]
b = L[1][1]
c = L[2][2]
L.app... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 548,992 | 548,990 | u617037231 | python |
p02760 | def check(A,b):
for raw in range(3):
for colomn in range(3):
if A[raw][colomn] == b:
A[raw][colomn] = -1
return
return
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
is_bingo = 'No'
for _ in range(N):
b = int(input())
check(A... | def check(A,b):
for raw in range(3):
for colomn in range(3):
if A[raw][colomn] == b:
A[raw][colomn] = -1
return
return
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
is_bingo = 'No'
for _ in range(N):
b = int(input())
check(A... | [
"call.remove"
] | 548,993 | 548,994 | u150517577 | python |
p02760 | import sys
Ar1 = list(map(int, input().split()))
Ar2 = list(map(int, input().split()))
Ar3 = list(map(int, input().split()))
N = int(input())
b = []
Ac1 = [Ar1[0], Ar2[0], Ar3[0]]
Ac2 = [Ar1[1], Ar2[1], Ar3[1]]
Ac3 = [Ar1[2], Ar2[2], Ar3[2]]
naname1 = [Ar1[0], Ar2[1], Ar3[2]]
naname2 = [Ar1[2], Ar2[1], Ar3[1]]
for i... | import sys
Ar1 = list(map(int, input().split()))
Ar2 = list(map(int, input().split()))
Ar3 = list(map(int, input().split()))
N = int(input())
b = []
Ac1 = [Ar1[0], Ar2[0], Ar3[0]]
Ac2 = [Ar1[1], Ar2[1], Ar3[1]]
Ac3 = [Ar1[2], Ar2[2], Ar3[2]]
naname1 = [Ar1[0], Ar2[1], Ar3[2]]
naname2 = [Ar1[2], Ar2[1], Ar3[0]]
for i... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change"
] | 548,995 | 548,996 | u646110634 | python |
p02760 | #N行複数列の文字列複数を行列として入力
table = [input().split() for l in range(3)]
N = int(input())
array = [input() for i in range(N)]
bingo = ""
for k in range(3):
for j in range(3):
if table[k][j] in array:
table[k][j] = 0
table[k][j] = int(table[k][j])
for l in range(3):
if table[l][0] + table[... | #N行複数列の文字列複数を行列として入力
table = [input().split() for l in range(3)]
N = int(input())
array = [input() for i in range(N)]
bingo = ""
for k in range(3):
for j in range(3):
if table[k][j] in array:
table[k][j] = 0
table[k][j] = int(table[k][j])
for l in range(3):
if table[l][0] + table[... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 548,997 | 548,998 | u886142147 | python |
p02760 | import numpy as np
lst = []
nums = []
for _ in range(3):
l = []
l = list(map(int, input().split()))
lst.append(l)
lst = np.array(lst)
n = int(input())
for _ in range(n):
nums.append(int(input()))
for h in range(3):
for w in range(3):
if array[h][w] in nums:
array[h][w] = 0
... | import numpy as np
lst = []
nums = []
for _ in range(3):
l = []
l = list(map(int, input().split()))
lst.append(l)
array = np.array(lst)
n = int(input())
for _ in range(n):
nums.append(int(input()))
for h in range(3):
for w in range(3):
if array[h][w] in nums:
array[h][w] =... | [
"assignment.variable.change",
"identifier.change"
] | 549,001 | 549,002 | u606146341 | python |
p02760 | dp = [[0]*3 for i in range(3)]
L = []
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))
L = [a,b,c]
n = int(input())
l = []
for i in range(n):
l.append(int(input()))
flag = 0
for i in range(3):
for j in range(3):
if L[i][j] in l:
dp[i... | dp = [[0]*3 for i in range(3)]
L = []
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))
L = [a,b,c]
n = int(input())
l = []
for i in range(n):
l.append(int(input()))
flag = 0
for i in range(3):
for j in range(3):
if L[i][j] in l:
dp[i... | [
"identifier.change"
] | 549,005 | 549,006 | u785578220 | python |
p02760 | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = A1 + A2 + A3
N = int(input())
# 印をつける
for i in range(N):
b = int(input())
for index in range(len(A)):
a = A[index]
if a == b:
A[index] = 0 # 0を印とする
def isExi... | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A = A1 + A2 + A3
N = int(input())
# 印をつける
for i in range(N):
b = int(input())
for index in range(len(A)):
a = A[index]
if a == b:
A[index] = 0 # 0を印とする
def isExi... | [] | 549,007 | 549,008 | u068210419 | python |
p02760 | def bingo(A, B):
for i in range(3):
if A[i][0] == "o" and A[i][1] == "o" and A[i][2] == "o":
return True
elif A[0][i] == "o" and A[1][i] == "o" and A[2][i] == "o":
return True
if A[0][0] == "o" and A[1][1] == "o" and A[2][2] == "o":
return True
elif A[0][2] == "o" and A[1][1] == "o" a... | def bingo(A, B):
for i in range(3):
if A[i][0] == "o" and A[i][1] == "o" and A[i][2] == "o":
return True
elif A[0][i] == "o" and A[1][i] == "o" and A[2][i] == "o":
return True
if A[0][0] == "o" and A[1][1] == "o" and A[2][2] == "o":
return True
elif A[0][2] == "o" and A[1][1] == "o" a... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 549,014 | 549,015 | u610801172 | python |
p02760 | import sys
A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
ans_flag = True
ans_flag2 = True
ans = [[False, False, False], [False, False, False], [False, False, False]]
for i in range(3):
for j in range(3):
if A[i][j] in b:
ans[i][j] =... | import sys
A = [list(map(int,input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
ans_flag = True
ans_flag2 = True
ans = [[False, False, False], [False, False, False], [False, False, False]]
for i in range(3):
for j in range(3):
if A[i][j] in b:
ans[i][j] =... | [
"call.remove"
] | 549,020 | 549,021 | u861071267 | python |
p02760 | A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
b=[int(input()) for _ in range(N)]
s=[]
t=[]
cross_1=0
cross_2=0
ans="No"
for i in b:
for j in range(3):
if i in A[j]:
s.append(j)
t.append(A[j].index(i))
if j==A[j].index(i):
cross_1+=... | A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
b=[int(input()) for _ in range(N)]
s=[]
t=[]
cross_1=0
cross_2=0
ans="No"
for i in b:
for j in range(3):
if i in A[j]:
s.append(j)
t.append(A[j].index(i))
if j==A[j].index(i):
cross_1+=... | [
"assignment.value.change"
] | 549,029 | 549,030 | u547608423 | python |
p02760 | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
flag = 0
for i in range(N):
for j in range(3):
if b[i] == A1[j]:
A1[j] = 0
elif b[i] == A2[j]:
A2[j... | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
flag = 0
for i in range(N):
for j in range(3):
if b[i] == A1[j]:
A1[j] = 0
elif b[i] == A2[j]:
A2[j... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,031 | 549,032 | u940533000 | python |
p02760 | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
flag = 0
for i in range(N):
for j in range(3):
if b[i] == A1[j]:
A1[j] = 0
elif b[i] == A2[j]:
A2[j... | import numpy as np
A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
flag = 0
for i in range(N):
for j in range(3):
if b[i] == A1[j]:
A1[j] = 0
elif b[i] == A2[j]:
A2[j... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,033 | 549,032 | u940533000 | python |
p02760 | a11,a12,a13= map(int,input().split())
a21,a22,a23= map(int,input().split())
a31,a32,a33= map(int,input().split())
N = int(input())
num = []
for i in range(N):
num.append(int(input()))
if (a11 in num and a12 in num and a13 in num) == True:
print('Yes')
elif (a21 in num and a22 in num and a23 in num) == True:
... | a11,a12,a13= map(int,input().split())
a21,a22,a23= map(int,input().split())
a31,a32,a33= map(int,input().split())
N = int(input())
num = []
for i in range(N):
num.append(int(input()))
if (a11 in num and a12 in num and a13 in num) == True:
print('Yes')
elif (a21 in num and a22 in num and a23 in num) == True:
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,034 | 549,035 | u100572972 | python |
p02760 | #coding:utf-8
a =[list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
#print(b)
check = [[0, 0, 0] for _ in range(3)]
#print(check)
for i in range(n):
for j in range(0, 3):
for k in range(0, 3):
if int(b[i]) == int(a[j][k]):
... | #coding:utf-8
a =[list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
#print(b)
check = [[0, 0, 0] for _ in range(3)]
#print(check)
for i in range(n):
for j in range(0, 3):
for k in range(0, 3):
if int(b[i]) == int(a[j][k]):
... | [
"control_flow.branch.if.condition.change"
] | 549,036 | 549,037 | u167908302 | python |
p02760 | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
a = a1+a2+a3
n = int(input())
b = list(int(input()) for _ in range(n))
for i in b:
if i in a :
a[a.index(a)] = "h"
if a[0:3].count("h") == 3 or a[3:6].count("h") == 3 or a[6:9].count("h") == 3:
... | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
a = a1+a2+a3
n = int(input())
b = list(int(input()) for _ in range(n))
for i in b:
if i in a :
a[a.index(i)] = "h"
if a[0:3].count("h") == 3 or a[3:6].count("h") == 3 or a[6:9].count("h") == 3:
... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 549,040 | 549,041 | u408791346 | python |
p02760 | bingo = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
aa = [0] * 8
for i in range(3):
for j in range(3):
if bingo[i][j] in b:
aa[i] += 1
aa[j+3] += 1
if i == j:
aa[-2] += 1
if i + j =... | bingo = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
aa = [0] * 8
for i in range(3):
for j in range(3):
if bingo[i][j] in b:
aa[i] += 1
aa[j+3] += 1
if i == j:
aa[-2] += 1
if i + j =... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 549,046 | 549,047 | u644516473 | python |
p02760 |
A = list()
for _ in range(3):
a1, a2, a3 = list(map(int, input().split()))
A.append(a1)
A.append(a2)
A.append(a3)
N = int(input())
for _ in range(N):
b = int(input())
for i in range(len(A)):
if A[i] == b:
A[i] = 0
if sum(A[0:2]) == 0 or sum(A[3:5]) == 0 or sum(A[6:8]) == ... |
A = list()
for _ in range(3):
a1, a2, a3 = list(map(int, input().split()))
A.append(a1)
A.append(a2)
A.append(a3)
N = int(input())
for _ in range(N):
b = int(input())
for i in range(len(A)):
if A[i] == b:
A[i] = 0
if sum(A[0:3]) == 0 or sum(A[3:6]) == 0 or sum(A[6:9]) == ... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,058 | 549,059 | u014779044 | python |
p02760 | AA = []
for i in range(3):
AA.append(input().split())
N = int(input())
for i in range(N):
bi = input()
for i in range(3):
aa = AA[i]
for a in range(3):
if bi == aa[a]:
AA[i][a] = 'B'
# yoko
flag = 0
for i in range(3):
aa = AA[i]
flag = 1
... | AA = []
for i in range(3):
AA.append(input().split())
N = int(input())
for i in range(N):
bi = input()
for i in range(3):
aa = AA[i]
for a in range(3):
if bi == aa[a]:
AA[i][a] = 'B'
# yoko
flag = 0
for i in range(3):
aa = AA[i]
flag = 1
... | [
"assignment.add"
] | 549,062 | 549,063 | u398175819 | python |
p02760 | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
lst_b = [int(input()) for i in range(N)]
def main(A, N, lst_b):
matrix_result = [[False]*3 for i in range(3)]
flag_bingo = False
for b in lst_b:
for i in range(3):
for j in range(3):
... | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
lst_b = [int(input()) for i in range(N)]
def main(A, N, lst_b):
matrix_result = [[False]*3 for i in range(3)]
flag_bingo = False
for b in lst_b:
for i in range(3):
for j in range(3):
... | [
"call.remove"
] | 549,064 | 549,065 | u030669569 | python |
p02760 | #157 b
a=[]
call_num=[]
for i in range(3):
x,y,z=map(int,input().split())
a.append(x)
a.append(y)
a.append(z)
n=int(input())
for i in range(n):
x=int(input())
if x in a:
call_num.append(a.index(x))
bingo
ans=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]
for x in ans:
... | #157 b
a=[]
call_num=[]
for i in range(3):
x,y,z=map(int,input().split())
a.append(x)
a.append(y)
a.append(z)
n=int(input())
for i in range(n):
x=int(input())
if x in a:
call_num.append(a.index(x))
bingo=False
ans=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]
for x in... | [
"assignment.variable.change",
"identifier.change"
] | 549,068 | 549,069 | u723583932 | python |
p02760 | #157 b
a=[]
call_num=[]
for i in range(3):
x,y,z=map(int,input().split())
a.append(x)
a.append(y)
a.append(z)
n=int(input())
for i in range(n):
x=int(input())
if x in a:
call_num.append(a.index(x))
bingo
ans=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]
for x in ans:... | #157 b
a=[]
call_num=[]
for i in range(3):
x,y,z=map(int,input().split())
a.append(x)
a.append(y)
a.append(z)
n=int(input())
for i in range(n):
x=int(input())
if x in a:
call_num.append(a.index(x))
bingo=False
ans=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]]
for x in... | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,070 | 549,069 | u723583932 | python |
p02760 | # -*- coding: utf-8 -*-
from math import gcd
import math
from math import ceil,floor
import collections
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))
def func(a):
return tmp
A = [list(map(int, input().split())) for _ in range(3)]
N=int(input())
B... | # -*- coding: utf-8 -*-
from math import gcd
import math
from math import ceil,floor
import collections
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))
def func(a):
return tmp
A = [list(map(int, input().split())) for _ in range(3)]
N=int(input())
B... | [
"call.remove"
] | 549,077 | 549,078 | u363146889 | python |
p02760 | # -*- coding: utf-8 -*-
from math import gcd
import math
from math import ceil,floor
import collections
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))
def func(a):
return tmp
A = [list(map(int, input().split())) for _ in range(3)]
N=int(input())
B... | # -*- coding: utf-8 -*-
from math import gcd
import math
from math import ceil,floor
import collections
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))
def func(a):
return tmp
A = [list(map(int, input().split())) for _ in range(3)]
N=int(input())
B... | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 549,079 | 549,078 | u363146889 | python |
p02760 | [A11,A12,A13] = list(map(int,input().split()))
[A21,A22,A23] = list(map(int,input().split()))
[A31,A32,A33] = list(map(int,input().split()))
N = int(input())
b=[]
for i in range(N):
b.append(int(input()))
A=[A11,A12,A13,A21,A22,A23,A31,A32,A33]
#フラグ
sheet=[0]*9
for i in range(N):
for j in range(9):
... | [A11,A12,A13] = list(map(int,input().split()))
[A21,A22,A23] = list(map(int,input().split()))
[A31,A32,A33] = list(map(int,input().split()))
N = int(input())
b=[]
for i in range(N):
b.append(int(input()))
A=[A11,A12,A13,A21,A22,A23,A31,A32,A33]
#フラグ
sheet=[0]*9
for i in range(N):
for j in range(9):
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,088 | 549,089 | u017603316 | python |
p02760 | bingo_dict = dict()
i=1
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
i=2
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
i=3
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
N = int(input())
s = set()
for b i... | bingo_dict = dict()
i=1
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
i=2
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
i=3
j=1
for a in [int(i) for i in input().split()]:
bingo_dict[a] = i*10+j
j+=1
N = int(input())
s = set()
for b i... | [
"literal.number.integer.change",
"assignment.value.change"
] | 549,090 | 549,091 | u486463852 | python |
p02760 | li1 = list(map(int,input().split()))
li2 = list(map(int,input().split()))
li3 = list(map(int,input().split()))
N = int(input())
b = [int(input()) for i in range(N)]
A = li1+li2+li3
hit = []
for i in b:
if i in A:
hit.append(A.index(i)+1)
if (1 in hit and 2 in hit and 3 in hit)\
or (4 in hit and 5 in hit a... | li1 = list(map(int,input().split()))
li2 = list(map(int,input().split()))
li3 = list(map(int,input().split()))
N = int(input())
b = [int(input()) for i in range(N)]
A = li1+li2+li3
hit = []
for i in b:
if i in A:
hit.append(A.index(i)+1)
if (1 in hit and 2 in hit and 3 in hit)\
or (4 in hit and 5 in hit a... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 549,094 | 549,095 | u493555013 | python |
p02760 | Alist=list(map(int,input().split()))
Blist=list(map(int,input().split()))
Clist=list(map(int,input().split()))
#print(Alist)
#print(Blist)
#print(Clist)
N=int(input())
mylist=[]
flaglist=[0,0,0,0,0,0,0,0] #8個のフラッグリスト
for i in range(N):
mylist.append(int(input()))
#print(mylist)
for i in range(3):
for j... | Alist=list(map(int,input().split()))
Blist=list(map(int,input().split()))
Clist=list(map(int,input().split()))
#print(Alist)
#print(Blist)
#print(Clist)
N=int(input())
mylist=[]
flaglist=[0,0,0,0,0,0,0,0] #8個のフラッグリスト
for i in range(N):
mylist.append(int(input()))
#print(mylist)
for i in range(3):
for j... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 549,098 | 549,099 | u469574680 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.