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 | 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... | [] | 549,100 | 549,099 | u469574680 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
if a[0][0] in b and a[0][1] in b and a[0][2] in b:
print('Yes')
exit()
if a[1][0] in b and a[1][1] in b and a[2][1] in b:
print('Yes')
exit()
if a[2][0] in b and a[1][2] in b and a[2][2] in b:
... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
if a[0][0] in b and a[0][1] in b and a[0][2] in b:
print('Yes')
exit()
if a[1][0] in b and a[1][1] in b and a[1][2] in b:
print('Yes')
exit()
if a[2][0] in b and a[2][1] in b and a[2][2] in b:
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,103 | 549,104 | u627803856 | python |
p02760 | import numpy as np
def resolve_b():
card = [list(map(int, input().split())) for i in range(3)]
l = [[0,0,0],[0,0,0],[0,0,0]]
n = int(input())
for i in range(n):
num = int(input())
for j in range(3):
for k in range(3):
if card[j][k] == num:
... | import numpy as np
def resolve_b():
card = [list(map(int, input().split())) for i in range(3)]
l = [[0,0,0],[0,0,0],[0,0,0]]
n = int(input())
for i in range(n):
num = int(input())
for j in range(3):
for k in range(3):
if card[j][k] == num:
... | [
"control_flow.branch.if.condition.change"
] | 549,123 | 549,124 | u046961553 | python |
p02760 | # coding: utf-8
import numpy as np
card = np.array([list(map(int, input().split())) for _ in range(3)])
n = int(input())
for _ in range(n):
num = int(input())
if num in card:
pos = tuple(nd[0] for nd in np.where(card == num))
print(pos)
card[pos[0], pos[1]] = 0
f = 0
for i in range(3... | # coding: utf-8
import numpy as np
card = np.array([list(map(int, input().split())) for _ in range(3)])
n = int(input())
for _ in range(n):
num = int(input())
if num in card:
pos = tuple(nd[0] for nd in np.where(card == num))
card[pos[0], pos[1]] = 0
f = 0
for i in range(3):
if sum(card[... | [
"call.remove"
] | 549,127 | 549,128 | u665452497 | python |
p02760 | alist = [int(i) for i in input().split()]
blist = [int(i) for i in input().split()]
clist = [int(i) for i in input().split()]
n = int(input())
call_num = []
for i in range(n):
call_num.append(int(input()))
lists = [alist,blist,clist]
dummy_list = [[0 for i in range(3)] for j in range(3)]
for i in call_num:
for l,jl... | alist = [int(i) for i in input().split()]
blist = [int(i) for i in input().split()]
clist = [int(i) for i in input().split()]
n = int(input())
call_num = []
for i in range(n):
call_num.append(int(input()))
lists = [alist,blist,clist]
dummy_list = [[0 for i in range(3)] for j in range(3)]
for i in call_num:
for l,jl... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 549,129 | 549,130 | u047012797 | python |
p02760 | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
N=int(input())
for i in range(N):
b=int(input())
if(a1[0]==b):
a1[0]=0
if(a1[1]==b):
a1[1]=0
if(a1[2]==b):
a1[2]=0
if(a2[0]==b):
a2[0]=0
if(a2[1]==b):
a2[1]=0
if(a2[2]==b):
... | a1 = list(map(int,input().split()))
a2 = list(map(int,input().split()))
a3 = list(map(int,input().split()))
N=int(input())
for i in range(N):
b=int(input())
if(a1[0]==b):
a1[0]=0
if(a1[1]==b):
a1[1]=0
if(a1[2]==b):
a1[2]=0
if(a2[0]==b):
a2[0]=0
if(a2[1]==b):
a2[1]=0
if(a2[2]==b):
... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.number.integer.change"
] | 549,135 | 549,136 | u382407432 | python |
p02760 | def resolve():
a_list = list(map(int,input().split()))
b_list = list(map(int,input().split()))
c_list = list(map(int,input().split()))
arr = np.array([a_list, b_list, c_list])
n = int(input())
for _ in range(n):
num = int(input())
arr = np.where(arr == num, 0, arr)
if True ... | import numpy as np
def resolve():
a_list = list(map(int,input().split()))
b_list = list(map(int,input().split()))
c_list = list(map(int,input().split()))
arr = np.array([a_list, b_list, c_list])
n = int(input())
for _ in range(n):
num = int(input())
arr = np.where(arr == num, ... | [] | 549,139 | 549,140 | u105210954 | python |
p02760 | b = []
b.append([int(s) for s in input().split()])
b.append([int(s) for s in input().split()])
b.append([int(s) for s in input().split()])
n = int(input())
for i in range(0, n):
v = int(input())
for i in range(0, 3):
for j in range(0, 3):
if b[i][j] == v:
b[i][j] = 999
an... | b = []
b.append([int(s) for s in input().split()])
b.append([int(s) for s in input().split()])
b.append([int(s) for s in input().split()])
n = int(input())
for i in range(0, n):
v = int(input())
for i in range(0, 3):
for j in range(0, 3):
if b[i][j] == v:
b[i][j] = 999
an... | [
"literal.string.change",
"literal.string.case.change",
"assignment.value.change"
] | 549,152 | 549,153 | u734936991 | python |
p02760 | a = [[int(i) for i in input().split()] for _ in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
ans = "No"
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = "x"
if (a[0][0]==a[1][1]==a[2][2]=="x") or (a[2][0]==a[1][1]==a[2][2]=="x"):
print("Yes")
exit()
if (a[0]... | a = [[int(i) for i in input().split()] for _ in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
ans = "No"
for i in range(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = "x"
if (a[0][0]==a[1][1]==a[2][2]=="x") or (a[2][0]==a[1][1]==a[0][2]=="x"):
print("Yes")
exit()
if (a[0]... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,155 | 549,156 | u757030836 | python |
p02760 | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A_all = A1
A_all.extend(A2)
A_all.extend(A3)
N = int(input())
def get_index(l, x, default=-1):
if x in l:
return l.index(x)
else:
return default
for i in range(N):
b =... | A1 = list(map(int, input().split()))
A2 = list(map(int, input().split()))
A3 = list(map(int, input().split()))
A_all = A1
A_all.extend(A2)
A_all.extend(A3)
N = int(input())
def get_index(l, x, default=-1):
if x in l:
return l.index(x)
else:
return default
for i in range(N):
b =... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,157 | 549,158 | u763249708 | python |
p02760 | a=[]
for i in range(3):
c=list(map(int,input().split()))
a.append(c)
m=[[0,0,0] for i in range(3)]
n=int(input())
b=[]
for i in range(n):
b.append(int(input()))
for i in range(3):
for j in range(3):
if a[i][j] in b:
m[i][j]=1
cnt0=0
cnt1=0
cnt2=0
cnt3=0
cnt4=0
cnt5=0
cnt6=0
cnt7=0
ans="No"
for i in... | a=[]
for i in range(3):
c=list(map(int,input().split()))
a.append(c)
m=[[0,0,0] for i in range(3)]
n=int(input())
b=[]
for i in range(n):
b.append(int(input()))
for i in range(3):
for j in range(3):
if a[i][j] in b:
m[i][j]=1
cnt0=0
cnt1=0
cnt2=0
cnt3=0
cnt4=0
cnt5=0
cnt6=0
cnt7=0
ans="No"
for i in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,167 | 549,168 | u404629709 | python |
p02760 | A=[]
for i in [0]*3:
A+=list(map(int,input().split()))
N=int(input())
B=[0]*9
for i in range(N):
i=int(input())
if i in A:
B[A.index(i)]=1
res=0
for i in range(3):
res+=B[i]*B[i+1]*B[i+2]
res+=B[i]*B[i+3]*B[i+6]
res+=B[0]*B[4]*B[8]+B[2]*B[4]*B[6]
print(['No','Yes'][res>0]) | A=[]
for i in [0]*3:
A+=list(map(int,input().split()))
N=int(input())
B=[0]*9
for i in range(N):
i=int(input())
if i in A:
B[A.index(i)]=1
res=0
for i in range(3):
res+=B[3*i]*B[3*i+1]*B[3*i+2]
res+=B[i]*B[i+3]*B[i+6]
res+=B[0]*B[4]*B[8]+B[2]*B[4]*B[6]
print(['No','Yes'][res>0]) | [
"expression.operation.binary.add"
] | 549,169 | 549,170 | u842170774 | python |
p02760 | cd = []
for i in range(3):
p = input().split(" ")
p = [int(j) for j in p]
cd.append(p)
n = input()
n = int(n)
tf = []
for i in range(n):
p = input()
for j in range(3):
if int(p) in cd[j]:
tf.append([j, cd[j].index(int(p))])
id0 = [i[0] for i in tf]
id1 = [i[1] for i in tf]
df = [i[0] - i[1] for i... | cd = []
for i in range(3):
p = input().split(" ")
p = [int(j) for j in p]
cd.append(p)
n = input()
n = int(n)
tf = []
for i in range(n):
p = input()
for j in range(3):
if int(p) in cd[j]:
tf.append([j, cd[j].index(int(p))])
id0 = [i[0] for i in tf]
id1 = [i[1] for i in tf]
df = [i[0] - i[1] for i... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 549,173 | 549,174 | u510565553 | python |
p02760 | List = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
ans = [[0,0,0] for i in range(3)]
ans1 = [[0,0,0] for i in range(3)]
res = False
for i in range(n):
for a in range(3):
for c in range(3):
if b[i] == List[a][c]:
ans... | List = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
ans = [[0,0,0] for i in range(3)]
ans1 = [[0,0,0] for i in range(3)]
res = False
for i in range(n):
for a in range(3):
for c in range(3):
if b[i] == List[a][c]:
ans... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,175 | 549,176 | u840974625 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
S = [[], [], []]
for i in range(3):
for j in range(3):
if A[i][j] in b:
S[i].append(1)
else:
S[i].append(0)
t = 0
for i in range(3):
if sum(S[i]) == 3:
... | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
b = [int(input()) for _ in range(N)]
S = [[], [], []]
for i in range(3):
for j in range(3):
if A[i][j] in b:
S[i].append(1)
else:
S[i].append(0)
t = 0
for i in range(3):
if sum(S[i]) == 3:
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,184 | 549,185 | u339503988 | python |
p02760 | #n = int(input())
#a,b = map(int,input().split())
a_1 = list(map(int,input().split()))
a_2 = list(map(int,input().split()))
a_3 = list(map(int,input().split()))
n = int(input())
b_L = []
for _ in range(n):
b_L.append(int(input()))
for num in b_L:
for i in range(0,3):
if a_1[i] == num:
a... | #n = int(input())
#a,b = map(int,input().split())
a_1 = list(map(int,input().split()))
a_2 = list(map(int,input().split()))
a_3 = list(map(int,input().split()))
n = int(input())
b_L = []
for _ in range(n):
b_L.append(int(input()))
for num in b_L:
for i in range(0,3):
if a_1[i] == num:
a... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,225 | 549,226 | u625255205 | python |
p02760 | list1=[list(map(int,input().split())) for i in range(3)]
n=int(input())
bl=[int(input()) for i in range(n)]
a=[[0]*3 for _ in range(3)]
for bi in bl:
for i in range(3):
for j in range(3):
if list1[i][j]==bi:
a[i][j]=1
ans=0
for i in range(3): # 縦横の判別
if a[0][i]==1 and a[1][... | list1=[list(map(int,input().split())) for i in range(3)]
n=int(input())
bl=[int(input()) for i in range(n)]
a=[[0]*3 for _ in range(3)]
for bi in bl:
for i in range(3):
for j in range(3):
if list1[i][j]==bi:
a[i][j]=1
ans=0
for i in range(3): # 縦横の判別
if a[0][i]==1 and a[1][... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,227 | 549,228 | u755801379 | python |
p02760 | import sys
a = [[0] * 3 for _ in range(3)]
a[0] = list(map(int, sys.stdin.readline().strip().split()))
a[1] = list(map(int, sys.stdin.readline().strip().split()))
a[2] = list(map(int, sys.stdin.readline().strip().split()))
n = int(sys.stdin.readline().strip())
b = [0] * n
for i in range(n):
b = int(sys.stdin.readl... | import sys
a = [[0] * 3 for _ in range(3)]
a[0] = list(map(int, sys.stdin.readline().strip().split()))
a[1] = list(map(int, sys.stdin.readline().strip().split()))
a[2] = list(map(int, sys.stdin.readline().strip().split()))
n = int(sys.stdin.readline().strip())
b = [0] * n
for i in range(n):
b = int(sys.stdin.readl... | [
"control_flow.branch.if.condition.change"
] | 549,238 | 549,239 | u922965680 | python |
p02760 | arr = []
for i in range(3):
te = list(map(int,input().split()))
arr.append(te)
n = int(input())
check = []
for i in range(n):
x = int(input())
for j in range(3):
for k in range(3):
if arr[j][k]==x:
arr[j][k] = 0
yes = False
for j in range(3):
c = 0
for k in range(3):
if arr[j][k]==0:
c+=1
if c==3:
... | arr = []
for i in range(3):
te = list(map(int,input().split()))
arr.append(te)
n = int(input())
check = []
for i in range(n):
x = int(input())
for j in range(3):
for k in range(3):
if arr[j][k]==x:
arr[j][k] = 0
yes = False
for j in range(3):
c = 0
for k in range(3):
if arr[j][k]==0:
c+=1
if c==3:
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 549,269 | 549,270 | u354397578 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for i in range(3):
if all(a[i][j] in b for j in range(3)):
print("Yes")
quit()
if all(a[j][i] in b for j in range(3)):
print("Yes")
quit()
if all(a[i][i] in b for i in r... | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for i in range(3):
if all(a[i][j] in b for j in range(3)):
print("Yes")
quit()
if all(a[j][i] in b for j in range(3)):
print("Yes")
quit()
if all(a[i][i] in b for i in r... | [
"call.arguments.change"
] | 549,271 | 549,272 | u682860781 | python |
p02760 | import sys
input = sys.stdin.readline
def main():
A = [list(map(int,input().split())) for _ in range(3)]
hit = [['n'] * 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:
... | import sys
input = sys.stdin.readline
def main():
A = [list(map(int,input().split())) for _ in range(3)]
hit = [['n'] * 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:
... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 549,273 | 549,274 | u852613820 | python |
p02760 | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
def main():
A = [[int(i) for i in input().split()] for j in range(3)]
N = int(readline())
ans = [[0]*3 for _ in range(3)]
for i in range(N):
b = int(readline())
for j, a in enumerate(A):
... | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
def main():
A = [[int(i) for i in input().split()] for j in range(3)]
N = int(readline())
ans = [[0]*3 for _ in range(3)]
for i in range(N):
b = int(readline())
for j, a in enumerate(A):
... | [
"identifier.change"
] | 549,277 | 549,278 | u638456847 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = set([int(input()) for i in range(n)])
ans = [[-1]*3 for _ in range(3)]
for i in range(3):
for j in range(3):
if a[i][j] in b:
ans[i][j] = 0
for i in range(3):
if sum(ans[i]) == 0:
cnt = 1
break
... | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = set([int(input()) for i in range(n)])
ans = [[-1]*3 for _ in range(3)]
for i in range(3):
for j in range(3):
if a[i][j] in b:
ans[i][j] = 0
cnt = 0
for i in range(3):
if sum(ans[i]) == 0:
cnt = 1
b... | [
"assignment.add"
] | 549,281 | 549,282 | u222668979 | python |
p02760 | A = [[0] * 3 for i in range(3)]
for i in range(3):
A[i] = [int(s) for s in input().split()]
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:
A[i][j] = 0
ans = "No"
# yoko
for i in range(3):
if sum(A[i]) ==... | A = [[0] * 3 for i in range(3)]
for i in range(3):
A[i] = [int(s) for s in input().split()]
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:
A[i][j] = 0
ans = "No"
# yoko
for i in range(3):
if sum(A[i]) ==... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 549,290 | 549,291 | u865298224 | python |
p02760 | SEL = 0
A = [[int(j) for j in input().split(' ')] for i in range(3)]
N = int(input())
for _ in range(N):
b = int(input())
for i in range(3):
for j in range(3):
if b == A[i][j]:
A[i][j] = SEL
if (A[0][0] == A[0][1] == A[0][2] == SEL or
A[1][0] == A[1][1] == A[1][2] == SEL or
A[2][0] == A[2... | SEL = 0
A = [[int(j) for j in input().split(' ')] for i in range(3)]
N = int(input())
for _ in range(N):
b = int(input())
for i in range(3):
for j in range(3):
if b == A[i][j]:
A[i][j] = SEL
if (A[0][0] == A[0][1] == A[0][2] == SEL or
A[1][0] == A[1][1] == A[1][2] == SEL or
A[2][0] == A[... | [
"call.remove"
] | 549,292 | 549,293 | u804455323 | python |
p02760 | import numpy as np
card = []
for i in range(3):
card.append(list(map(int, input().split())))
card = np.array(card)
n = int(input())
for k in range(n):
b = int(input())
for i in range(3):
for j in range(3):
if (card[i, j] == b):
card[i, j] = 0
flag = 0
for i in range(3):
i... | import numpy as np
card = []
for i in range(3):
card.append(list(map(int, input().split())))
card = np.array(card)
n = int(input())
for k in range(n):
b = int(input())
for i in range(3):
for j in range(3):
if (card[i, j] == b):
card[i, j] = 0
flag = 0
for i in range(3):
i... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 549,298 | 549,299 | u131946248 | python |
p02760 | A = []
A.append(list(map(int, input().split())))
A.append(list(map(int, input().split())))
A.append(list(map(int, input().split())))
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:
A[i][j] = 0
flag = False
for i in ... | A = []
A.append(list(map(int, input().split())))
A.append(list(map(int, input().split())))
A.append(list(map(int, input().split())))
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:
A[i][j] = 0
flag = False
for i in ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,300 | 549,301 | u219180252 | python |
p02760 | a = []
for i in range(3):
a.append(list(map(int,input().split())))
for i in range(int(input())):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
a[j][k] = 0
def bingo():
for i in range(3):
if sum(a[i]) == 0 or a[0][i] + a[0][j] + a[0][k] == 0:
return 'Yes'
i... | a = []
for i in range(3):
a.append(list(map(int,input().split())))
for i in range(int(input())):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
a[j][k] = 0
def bingo():
for i in range(3):
if sum(a[i]) == 0 or a[0][i] + a[1][i] + a[2][i] == 0:
return 'Yes'
i... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 549,302 | 549,303 | u648257619 | python |
p02760 | import numpy as np
import math as m
def main(**kwargs):
r = "No"
if (A[0][0] in B) and (A[0][1] in B) and (A[0][2] in B):
r = "Yes"
if (A[1][0] in B) and (A[1][1] in B) and (A[1][2] in B):
r = "Yes"
if (A[2][0] in B) and (A[2][1] in B) and (A[2][2] in B):
r = "Yes"
... | import numpy as np
import math as m
def main(**kwargs):
r = "No"
if (A[0][0] in B) and (A[0][1] in B) and (A[0][2] in B):
r = "Yes"
if (A[1][0] in B) and (A[1][1] in B) and (A[1][2] in B):
r = "Yes"
if (A[2][0] in B) and (A[2][1] in B) and (A[2][2] in B):
r = "Yes"
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,306 | 549,307 | u177182853 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
bingos = [
[(0,0), (0,1), (0,2)],
[(1,0), (1,1), (1,2)],
[(2,0), (2,1), (2,2)],
[(0,0), (1,0), (2,0)],
[(0,1), (1,1), (2,1)],
[(0,2), (1,2), (2,2)],
[(0,0), (1,1), (2,2)],
[(2,1... | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
bingos = [
[(0,0), (0,1), (0,2)],
[(1,0), (1,1), (1,2)],
[(2,0), (2,1), (2,2)],
[(0,0), (1,0), (2,0)],
[(0,1), (1,1), (2,1)],
[(0,2), (1,2), (2,2)],
[(0,0), (1,1), (2,2)],
[(2,0... | [
"literal.number.integer.change",
"assignment.value.change"
] | 549,314 | 549,315 | u382423941 | python |
p02760 | import math
A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
b=[int(input()) for _ in range(N)]
l=[[0 for _ in range(3)] for _ in range(3)]
flag=0
#print(A,b,l)
for i in range(N):
for j in range(3):
for k in range(3):
if b[i]==A[j][k]:
l[j][k]=1
#print(l)
for... | import math
A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
b=[int(input()) for _ in range(N)]
l=[[0 for _ in range(3)] for _ in range(3)]
flag=0
#print(A,b,l)
for i in range(N):
for j in range(3):
for k in range(3):
if b[i]==A[j][k]:
l[j][k]=1
#print(l)
for... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,334 | 549,335 | u995004106 | python |
p02760 | import numpy as np
A = np.array([list(map(str, input().split())) for _ in range(3)])
N = int(input())
b = [input() for _ in range(N)]
for i in range(3):
for j in range(3):
if A[i][j] in b:
A[i][j] = 'X'
print(A)
if A[0][0] == A[1][1] == A[2][2] == 'X':
print('Yes')
exit()
if A[0][2] =... | import numpy as np
A = np.array([list(map(str, input().split())) for _ in range(3)])
N = int(input())
b = [input() for _ in range(N)]
for i in range(3):
for j in range(3):
if A[i][j] in b:
A[i][j] = 'X'
if A[0][0] == A[1][1] == A[2][2] == 'X':
print('Yes')
exit()
if A[0][2] == A[1][1]... | [
"call.remove"
] | 549,342 | 549,343 | u273010357 | python |
p02760 | bingo = []
for i in range(3):
bingo.append(list(map(int,input().split())))
n = int(input())
for i in range(n):
num = int(input())
for j in range(3):
for k in range(3):
if num == bingo[j][k]:
bingo[j][k] = 0
for i in range(3):
if bingo[i] == [0, 0, 0]:
print("Y... | bingo = []
for i in range(3):
bingo.append(list(map(int,input().split())))
n = int(input())
for i in range(n):
num = int(input())
for j in range(3):
for k in range(3):
if num == bingo[j][k]:
bingo[j][k] = 0
for i in range(3):
if bingo[i] == [0, 0, 0]:
print("Y... | [] | 549,350 | 549,351 | u599114793 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if a[i][j] == b[k]:
a[i][j] = 0
ans = 'Yes'
for i in range(3):
cnt = 0
for j in range(3):
if a[i... | a = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
for k in range(N):
for i in range(3):
for j in range(3):
if a[i][j] == b[k]:
a[i][j] = 0
ans = 'Yes'
for i in range(3):
cnt = 0
for j in range(3):
if a[i... | [] | 549,371 | 549,372 | u311379832 | python |
p02760 | A=[]
B=[[0,0,0],[0,0,0],[0,0,0]]
bseq=[]
for i in range(3):
a,b,c=map(int,input().split())
A.append([a,b,c])
n=int(input())
for i in range(n):
bseq.append(int(input()))
for i in range(n):
for j in range(3):
for k in range(3):
if A[j][k]==bseq[i]:
B[j][k]=1
bingo=... | A=[]
B=[[0,0,0],[0,0,0],[0,0,0]]
bseq=[]
for i in range(3):
a,b,c=map(int,input().split())
A.append([a,b,c])
n=int(input())
for i in range(n):
bseq.append(int(input()))
for i in range(n):
for j in range(3):
for k in range(3):
if A[j][k]==bseq[i]:
B[j][k]=1
bingo=... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,387 | 549,388 | u354126779 | python |
p02760 | A1 = list(map(int,input().split()))
A2 = list(map(int,input().split()))
A3 = list(map(int,input().split()))
N = int(input())
for i in range(N):
bingo_num = int(input())
if bingo_num in A1:
A1[A1.index(bingo_num)] = 0
if bingo_num in A2:
A2[A2.index(bingo_num)] = 0
if bingo_num in A3:
A3[A3.index(b... | A1 = list(map(int,input().split()))
A2 = list(map(int,input().split()))
A3 = list(map(int,input().split()))
N = int(input())
for i in range(N):
bingo_num = int(input())
if bingo_num in A1:
A1[A1.index(bingo_num)] = 0
if bingo_num in A2:
A2[A2.index(bingo_num)] = 0
if bingo_num in A3:
A3[A3.index(b... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,399 | 549,400 | u386782537 | python |
p02760 | card = [list(map(int,input().split(' '))) for j in range(3)]
N = int(input())
called = set([int(input()) for i in range(N)])
for x,i in enumerate(card):
for y,j in enumerate(i):
if j in called:
card[x][y] = 0
for i in range(3):
if sum(card[i])==0:
print('Yes')
exit()
if s... | card = [list(map(int,input().split(' '))) for j in range(3)]
N = int(input())
called = set([int(input()) for i in range(N)])
for x,i in enumerate(card):
for y,j in enumerate(i):
if j in called:
card[x][y] = 0
for i in range(3):
if sum(card[i])==0:
print('Yes')
exit()
if s... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,411 | 549,412 | u474423089 | python |
p02760 | A = [[int(i) for i in input().split()] for _ in range(3)]
B = [[False, False, False], [False, False, False], [False, False, False]]
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:
B[j][k]=True
for r in B:
if all(r)... | A = [[int(i) for i in input().split()] for _ in range(3)]
B = [[False, False, False], [False, False, False], [False, False, False]]
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:
B[j][k]=True
for r in B:
if all(r)... | [
"identifier.change",
"call.arguments.change"
] | 549,413 | 549,414 | u821432765 | python |
p02760 | A = [[int(i) for i in input().split()] for _ in range(3)]
B = [[False, False, False], [False, False, False], [False, False, False]]
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:
B[j][k]=True
for r in B:
if all(r)... | A = [[int(i) for i in input().split()] for _ in range(3)]
B = [[False, False, False], [False, False, False], [False, False, False]]
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:
B[j][k]=True
for r in B:
if all(r)... | [
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 549,415 | 549,414 | u821432765 | python |
p02760 | import sys
readline = sys.stdin.buffer.readline
lst1 = [list(map(int,readline().split())) for i in range(3)]
n = int(readline())
lstans = [[0]*3 for i in range(3)]
for i in range(n):
b = int(readline())
for i in range(3):
for j in range(3):
if lst1[i][j] == b:
lstans[i][j... | import sys
readline = sys.stdin.buffer.readline
lst1 = [list(map(int,readline().split())) for i in range(3)]
n = int(readline())
lstans = [[0]*3 for i in range(3)]
for i in range(n):
b = int(readline())
for i in range(3):
for j in range(3):
if lst1[i][j] == b:
lstans[i][j... | [] | 549,420 | 549,421 | u372144784 | python |
p02760 | import sys
#n=int(input())
#l = list(map(int,input().split()))
#a,b,c = map(int,input().split())
ly = []
for i in range(3):
ly.append(list(map(int,input().split())))
lt = []
for i in range(3):
l = []
for j in range(3):
l.append(ly[j][i])
lt.append(l)
l = ly+lt + [[ly[0][0],ly[1][1],lt[2][2]... | import sys
#n=int(input())
#l = list(map(int,input().split()))
#a,b,c = map(int,input().split())
ly = []
for i in range(3):
ly.append(list(map(int,input().split())))
lt = []
for i in range(3):
l = []
for j in range(3):
l.append(ly[j][i])
lt.append(l)
l = ly+lt + [[ly[0][0],ly[1][1],lt[2][2]... | [
"call.remove"
] | 549,436 | 549,437 | u007018214 | python |
p02760 |
a=[]
a.append([int(i) for i in input().split()])
a.append([int(i) for i in input().split()])
a.append([int(i) for i in input().split()])
N=int(input())
b=[int(input()) for _ in range(N)]
bingo = [[0]*3, [0]*3, [0]*3]
for i in range(3):
for j in range(3):
if a[i][j] in b:
bingo[i][j]=1
f=False... |
a=[]
a.append([int(i) for i in input().split()])
a.append([int(i) for i in input().split()])
a.append([int(i) for i in input().split()])
N=int(input())
b=[int(input()) for _ in range(N)]
bingo = [[0]*3, [0]*3, [0]*3]
for i in range(3):
for j in range(3):
if a[i][j] in b:
bingo[i][j]=1
f=False... | [
"control_flow.branch.if.condition.change"
] | 549,451 | 549,452 | u069172538 | python |
p02760 | bingo = list()
for i in range(3):
bingo.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
b = int(input())
for x in bingo:
if x[0] == b:
x[0] = True
elif x[1] == b:
x[1] = True
elif x[2] == b:
x[2] = True
if x[0]... | bingo = list()
for i in range(3):
bingo.append(list(map(int, input().split())))
N = int(input())
for i in range(N):
b = int(input())
for x in bingo:
if x[0] == b:
x[0] = True
elif x[1] == b:
x[1] = True
elif x[2] == b:
x[2] = True
if x[0]... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 549,457 | 549,458 | u658801777 | python |
p02760 | import numpy as np
bingo = list()
for i in range(3):
bingo.append(list(map(int,input().split())))
N = int(input())
number = list()
for i in range(N):
number.append(int(input()))
bingo_array = np.array(bingo)
check_array = np.zeros([3,3])
for i in range(N):
check_array[bingo_array==number[i]] = 1
row =... | import numpy as np
bingo = list()
for i in range(3):
bingo.append(list(map(int,input().split())))
N = int(input())
number = list()
for i in range(N):
number.append(int(input()))
bingo_array = np.array(bingo)
check_array = np.zeros([3,3])
for i in range(N):
check_array[bingo_array==number[i]] = 1
row... | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"call.arguments.keyword_argument.change"
] | 549,459 | 549,460 | u509392332 | python |
p02760 | # coding:utf-8
import sys
import math
import time
#import numpy as np
import collections
from collections import deque
import queue
import copy
import bisect
def dfs(s, prev, pre):
val[s] += Ope[s] + prev
for i in G[s]:
if(i == pre):
continue
dfs(i, val[s], s)
#X = str(input()).split()
#a = [int(x... | # coding:utf-8
import sys
import math
import time
#import numpy as np
import collections
from collections import deque
import queue
import copy
import bisect
def dfs(s, prev, pre):
val[s] += Ope[s] + prev
for i in G[s]:
if(i == pre):
continue
dfs(i, val[s], s)
#X = str(input()).split()
#a = [int(x... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,489 | 549,490 | u395117343 | python |
p02760 | import sys
bingo = [list(map(int, input().split())) for _ in range(3)]
input_num = int(input())
input_list = [int(input()) for _ in range(input_num)]
flag = False
for l in bingo:
match_count = 0
if [x for x in l if x in input_list]:
match_count = len([x for x in l if x in input_list])
if match_count == 3:
prin... | import sys
bingo = [list(map(int, input().split())) for _ in range(3)]
input_num = int(input())
input_list = [int(input()) for _ in range(input_num)]
flag = False
for l in bingo:
match_count = 0
if [x for x in l if x in input_list]:
match_count = len([x for x in l if x in input_list])
if match_count == 3:
pri... | [
"call.arguments.change"
] | 549,495 | 549,496 | u982137850 | python |
p02760 | card = []
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
N = int(input())
for i in range(N):
b = int(input())
try:
ca... | card = []
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
a,b,c = map(int,input().split())
card.append(a)
card.append(b)
card.append(c)
N = int(input())
for i in range(N):
b = int(input())
try:
ca... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,499 | 549,500 | u267300160 | python |
p02760 | a = [0 for i in range(9)]
c = [0 for i in range(9)]
a[0],a[1],a[2] = map(int,input().split())
a[3],a[4],a[5] = map(int,input().split())
a[6],a[7],a[8] = map(int,input().split())
n = int(input())
for i in range(n):
b= int(input())
for j in range(9):
if a[j] == b:
c[j] = 1
ans = 'No'
if i in ... | a = [0 for i in range(9)]
c = [0 for i in range(9)]
a[0],a[1],a[2] = map(int,input().split())
a[3],a[4],a[5] = map(int,input().split())
a[6],a[7],a[8] = map(int,input().split())
n = int(input())
for i in range(n):
b= int(input())
for j in range(9):
if a[j] == b:
c[j] = 1
ans = 'No'
for i... | [] | 549,505 | 549,506 | u134520518 | python |
p02760 | a=[list(map(int,input().split())) for i in range(3)]
n=int(input())
b=[int(input()) for i in range(n)]
ans=[set([a[0][0],a[0][1],a[0][2]]),set([a[1][0],a[1][1],a[1][2]]),set([a[2][0],a[2][1],a[2][2]]),set([a[0][0],a[1][0],a[2][0]]),set([a[0][1],a[1][1],a[2][1]]),set([a[0][2],a[1][2],a[2][2]]),set([a[0][0],a[1][1],a[2]... | a=[list(map(int,input().split())) for i in range(3)]
n=int(input())
b=[int(input()) for i in range(n)]
ans=[set([a[0][0],a[0][1],a[0][2]]),set([a[1][0],a[1][1],a[1][2]]),set([a[2][0],a[2][1],a[2][2]]),set([a[0][0],a[1][0],a[2][0]]),set([a[0][1],a[1][1],a[2][1]]),set([a[0][2],a[1][2],a[2][2]]),set([a[0][0],a[1][1],a[2]... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 549,509 | 549,510 | u867848444 | python |
p02760 | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,516 | 549,517 | u606393507 | python |
p02760 | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"control_flow.break.remove"
] | 549,518 | 549,517 | u606393507 | python |
p02760 | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | import sys
def main():
a=[]
b=[]
c=[]
for i in range(3):
tmp = input().replace('\n','').split(' ')
tmp = list(map(int, tmp))
a.append([tmp[0],False])
a.append([tmp[1],False])
a.append([tmp[2],False])
c.append(tmp[0])
c.append(tmp[1])
c.app... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.break.remove"
] | 549,519 | 549,517 | u606393507 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
for _ in range(N):
is_matched = False
b = int(input())
for row in range(3):
for col in range(3):
if A[row][col] == b:
is_matched = True
A[row][col] = True
if A[row][0... | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
for _ in range(N):
is_matched = False
b = int(input())
for row in range(3):
for col in range(3):
if A[row][col] == b:
is_matched = True
A[row][col] = True
if A[row][0... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,522 | 549,523 | u803617136 | 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()))
x = False
for i in range(3):
count = 0
for j in range(3):
for k in range(N):
if A[i][j] == b[k]:
count += 1
if count == 3:
x = True
... | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
b = []
for i in range(N):
b.append(int(input()))
x = False
for i in range(3):
count = 0
for j in range(3):
for k in range(N):
if A[i][j] == b[k]:
count += 1
if count == 3:
x = True
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 549,528 | 549,529 | u044638697 | python |
p02760 | bingo=[list(map(int,input().split())) for i in range(3)]
N=int(input())
number=[list(map(int,input().split())) for i in range(N)]
#print(bingo)
#print(number)
check=[0,0,0,0,0,0,0,0,0]
ans=0
for i in range(N):
for j in range(3):
for k in range(3):
if number[i][0]==bingo[j][k]:
c... | bingo=[list(map(int,input().split())) for i in range(3)]
N=int(input())
number=[list(map(int,input().split())) for i in range(N)]
#print(bingo)
#print(number)
check=[0,0,0,0,0,0,0,0,0]
ans=0
for i in range(N):
for j in range(3):
for k in range(3):
if number[i][0]==bingo[j][k]:
c... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,534 | 549,535 | u996731299 | python |
p02760 | bingo=[list(map(int,input().split())) for i in range(3)]
N=int(input())
number=[list(map(int,input().split())) for i in range(N)]
#print(bingo)
#print(number)
check=[0,0,0,0,0,0,0,0,0]
ans=0
for i in range(N):
for j in range(3):
for k in range(3):
if number[i]==bingo[j][k]:
chec... | bingo=[list(map(int,input().split())) for i in range(3)]
N=int(input())
number=[list(map(int,input().split())) for i in range(N)]
#print(bingo)
#print(number)
check=[0,0,0,0,0,0,0,0,0]
ans=0
for i in range(N):
for j in range(3):
for k in range(3):
if number[i][0]==bingo[j][k]:
c... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 549,536 | 549,535 | u996731299 | 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())
nums = [int(input()) for _ in range(n)]
arr = np.array([a1, a2, a3])
mask = np.zeros_like(arr)
for num in nums:
idx = np.where(arr == num)
if len(idx[0... | 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())
nums = [int(input()) for _ in range(n)]
arr = np.array([a1, a2, a3])
mask = np.zeros_like(arr)
for num in nums:
idx = np.where(arr == num)
if len(idx[0... | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"call.arguments.keyword_argument.change"
] | 549,537 | 549,538 | u277298370 | 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())
nums = [int(input()) for _ in range(n)]
arr = np.array([a1, a2, a3])
mask = np.zeros_like(arr)
for num in nums:
idx = np.where(arr == num)
if len(idx[0... | 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())
nums = [int(input()) for _ in range(n)]
arr = np.array([a1, a2, a3])
mask = np.zeros_like(arr)
for num in nums:
idx = np.where(arr == num)
if len(idx[0... | [
"call.remove",
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"call.arguments.keyword_argument.change"
] | 549,539 | 549,538 | u277298370 | python |
p02760 | import numpy as np
A = [[0] * 3 for i in range(3)]
A[0] = list(map(int, input().split()))
A[1] = list(map(int, input().split()))
A[2] = list(map(int, input().split()))
N = int(input())
b = [0] * N
for i in range(N):
b[i] = int(input())
print(b)
if ((A[0][0] in b) & (A[0][1] in b) & (A[0][2] in b)):
print('Ye... | import numpy as np
A = [[0] * 3 for i in range(3)]
A[0] = list(map(int, input().split()))
A[1] = list(map(int, input().split()))
A[2] = list(map(int, input().split()))
N = int(input())
b = [0] * N
for i in range(N):
b[i] = int(input())
if ((A[0][0] in b) & (A[0][1] in b) & (A[0][2] in b)):
print('Yes')
elif ... | [
"call.remove"
] | 549,540 | 549,541 | u998169143 | python |
p02760 | a = []
for _ in range(3):
a.append(list(map(int, input().split())))
n = int(input())
b = []
for _ in range(n):
b.append(int(input()))
b = set(b)
row = []
col = []
diag = []
for i in range(3):
tmp1 = []
tmp2 = []
for j in range(3):
tmp1.append(a[i][j])
tmp2.append(a[j][i])
row.app... | a = []
for _ in range(3):
a.append(list(map(int, input().split())))
n = int(input())
b = []
for _ in range(n):
b.append(int(input()))
b = set(b)
row = []
col = []
diag = []
for i in range(3):
tmp1 = []
tmp2 = []
for j in range(3):
tmp1.append(a[i][j])
tmp2.append(a[j][i])
row.app... | [
"identifier.change",
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 549,554 | 549,555 | u970002663 | python |
p02760 | # ABC157b
def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
# 再帰関数を使わない限りPypyで出すこと
bing = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for num in b:
for i in bing:
try:
... | # ABC157b
def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
# 再帰関数を使わない限りPypyで出すこと
bing = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for num in b:
for i in bing:
try:
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,580 | 549,581 | u278356323 | python |
p02760 | bingo = []
for i in range(3):
bingo.append(list(map(int, input().split())))
n = int(input())
b_s = []
for i in range(n):
b_s.append(int(input()))
ans = "No"
for i in range(n):
for j in range(3):
for k in range(3):
if b_s[i] == bingo[j][k]:
bingo[j][k] = "o"
if bingo[1... | bingo = []
for i in range(3):
bingo.append(list(map(int, input().split())))
n = int(input())
b_s = []
for i in range(n):
b_s.append(int(input()))
ans = "No"
for i in range(n):
for j in range(3):
for k in range(3):
if b_s[i] == bingo[j][k]:
bingo[j][k] = "o"
if bingo[1... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,590 | 549,591 | u204208382 | python |
p02760 | bingo = []
for i in range(3):
bingo.append(list(map(int, input().split())))
n = int(input())
b_s = []
for i in range(n):
b_s.append(int(input()))
ans = "No"
for i in range(n):
for j in range(3):
for k in range(3):
if b_s[i] == bingo[j][k]:
bingo[j][k] = "o"
if bingo[1... | bingo = []
for i in range(3):
bingo.append(list(map(int, input().split())))
n = int(input())
b_s = []
for i in range(n):
b_s.append(int(input()))
ans = "No"
for i in range(n):
for j in range(3):
for k in range(3):
if b_s[i] == bingo[j][k]:
bingo[j][k] = "o"
if bingo[1... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.if.replace.remove",
"control_flow.branch.else_if.replace.add"
] | 549,592 | 549,591 | u204208382 | python |
p02760 | from collections import defaultdict as dd
a = []
for _ in range(3):
temp = list(map(int,input().split()))
a.append(temp)
m1 = dd(int)
n = int(input())
for _ in range(n):
temp = int(input())
m1[temp]+=1
cnt=0
flag=0
for i in range(3):
cnt=0
for j in range(3):
if m1[a[i][j]]==1:
cnt+=1
if c... | from collections import defaultdict as dd
a = []
for _ in range(3):
temp = list(map(int,input().split()))
a.append(temp)
m1 = dd(int)
n = int(input())
for _ in range(n):
temp = int(input())
m1[temp]+=1
cnt=0
flag=0
for i in range(3):
cnt=0
for j in range(3):
if m1[a[i][j]]==1:
cnt+=1
if c... | [] | 549,599 | 549,600 | u756553422 | python |
p02760 | a = [[int(i) for i in input().split()] for j in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
a_true = [[False for i in range(3)] for j in range(3)]
for i in range(n):
for j in range(3):
for k in range(3):
if a[j][k] == b[i]:
a_true[j][k] = True
... | a = [[int(i) for i in input().split()] for j in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
a_true = [[False for i in range(3)] for j in range(3)]
for i in range(n):
for j in range(3):
for k in range(3):
if a[j][k] == b[i]:
a_true[j][k] = True
... | [
"assignment.add"
] | 549,601 | 549,602 | u228223940 | python |
p02760 |
#A_List=[list(map(int,input().split())) for i in range(3)]
A_List_1 = list(map(int,input().split()))
A_List_2 = list(map(int,input().split()))
A_List_3 = list(map(int,input().split()))
#print(A_List_1)
#print(A_List_2)
#print(A_List_3)
N = int(input())
#B_List = []
for i in range(N):
n = int(input())
for j... |
A_List_1 = list(map(int,input().split()))
A_List_2 = list(map(int,input().split()))
A_List_3 = list(map(int,input().split()))
N = int(input())
#B_List = []
for i in range(N):
n = int(input())
for j in range(3):
if n == A_List_1[j]:
A_List_1[j] = 0
if n == A_List_2[j]:
... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 549,607 | 549,608 | u791977205 | python |
p02760 | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
B=[int(input()) for i in range(N)]
han=[]
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j]==B[k]:
A[i][j]=0
if A[0][0]==A[0][1]==A[0][2]==0 or A[1][0]==A[1][1]==A[1][2]==0 or A[2][0]==A[2][1]==... | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
B=[int(input()) for i in range(N)]
han=[]
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j]==B[k]:
A[i][j]=0
if A[0][0]==A[0][1]==A[0][2]==0 or A[1][0]==A[1][1]==A[1][2]==0 or A[2][0]==A[2][1]==... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,611 | 549,612 | u403331159 | python |
p02760 | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
B=[int(input()) for i in range(N)]
han=[]
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j]==B[k]:
A[i][j]=0
if A[0][0]==A[0][1]==A[0][2]==0 or A[1][0]==A[1][1]==A[1][2]==0 or A[2][0]==A[2][1]==... | A=[list(map(int,input().split())) for i in range(3)]
N=int(input())
B=[int(input()) for i in range(N)]
han=[]
for i in range(3):
for j in range(3):
for k in range(N):
if A[i][j]==B[k]:
A[i][j]=0
if A[0][0]==A[0][1]==A[0][2]==0 or A[1][0]==A[1][1]==A[1][2]==0 or A[2][0]==A[2][1]==... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,613 | 549,612 | u403331159 | python |
p02760 | A0 = list(map(int, input().split(" ")))
A1 = list(map(int, input().split(" ")))
A2 = list(map(int, input().split(" ")))
A = [A0, A1, A2]
M = [
[False, False, False],
[False, False, False],
[False, False, False],
]
N = int(input())
for _ in range(N):
b = int(input())
for i, row in enumerate(A):
... | A0 = list(map(int, input().split(" ")))
A1 = list(map(int, input().split(" ")))
A2 = list(map(int, input().split(" ")))
A = [A0, A1, A2]
M = [
[False, False, False],
[False, False, False],
[False, False, False],
]
N = int(input())
for _ in range(N):
b = int(input())
for i, row in enumerate(A):
... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 549,614 | 549,615 | u660106942 | python |
p02760 | A0 = list(map(int, input().split(" ")))
A1 = list(map(int, input().split(" ")))
A2 = list(map(int, input().split(" ")))
A = [A0, A1, A2]
M = [
[False, False, False],
[False, False, False],
[False, False, False],
]
N = int(input())
for _ in range(N):
b = int(input())
for i, row in enumerate(A):
... | A0 = list(map(int, input().split(" ")))
A1 = list(map(int, input().split(" ")))
A2 = list(map(int, input().split(" ")))
A = [A0, A1, A2]
M = [
[False, False, False],
[False, False, False],
[False, False, False],
]
N = int(input())
for _ in range(N):
b = int(input())
for i, row in enumerate(A):
... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.remove"
] | 549,616 | 549,615 | u660106942 | python |
p02760 | #coding:utf-8
import sys,os
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
input = lambda: given().rstrip()
LMIIS = lambda: list(map(int,input().split()))
II = lambda: in... | #coding:utf-8
import sys,os
sys.setrecursionlimit(10**6)
write = sys.stdout.write
dbg = (lambda *something: print(*something)) if 'TERM_PROGRAM' in os.environ else lambda *x: 0
def main(given=sys.stdin.readline):
input = lambda: given().rstrip()
LMIIS = lambda: list(map(int,input().split()))
II = lambda: in... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,623 | 549,624 | u043048943 | python |
p02760 | import numpy as np
a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
list_ = set(a+b+c)
n = int(input())
a = np.array([a, b, c])
for _ in range(n):
x = int(input())
if x in list_:
a = np.where(a==x,0,a)
if np.sum(a==0) < 3:
print('No')
quit... | import numpy as np
a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
list_ = set(a+b+c)
n = int(input())
a = np.array([a, b, c])
for _ in range(n):
x = int(input())
if x in list_:
a = np.where(a==x,0,a)
if np.sum(a==0) < 3:
print('No')
qui... | [
"call.add"
] | 549,631 | 549,632 | u983181637 | python |
p02760 | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
B = [[0 for i in range(3)] for j in range(3)]
for i in range(N):
a = int(input())
for m in range(3):
for n in range(3):
if a == A[m][n]:
B[m][n] = 1
p = 'No'
for i in range(3):
cnt1 = 0
cnt2 = 0
for j in range(3):
i... | A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
B = [[0 for i in range(3)] for j in range(3)]
for i in range(N):
a = int(input())
for m in range(3):
for n in range(3):
if a == A[m][n]:
B[m][n] = 1
p = 'No'
for i in range(3):
cnt1 = 0
cnt2 = 0
for j in range(3):
i... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,641 | 549,642 | u984276646 | python |
p02760 | import itertools
bingo = []
for _ in range(3):
array = list(map(int, input().split()))
bingo.append(array)
bingo = list(itertools.chain.from_iterable(bingo))
bingo_bi = [False for _ in range(9)]
n = int(input())
nums = []
for _ in range(n):
num = int(input())
if num in bingo:
bingo_bi[bin... | import itertools
bingo = []
for _ in range(3):
array = list(map(int, input().split()))
bingo.append(array)
bingo = list(itertools.chain.from_iterable(bingo))
bingo_bi = [False for _ in range(9)]
n = int(input())
nums = []
for _ in range(n):
num = int(input())
if num in bingo:
bingo_bi[bin... | [
"control_flow.branch.if.condition.change"
] | 549,643 | 549,644 | u768896740 | python |
p02760 | import numpy as np
def check(A):
for i in range(3):
if A[i,0] == 0 and A[i,1] == 0 and A[i,2] == 0:
return True
if A[0,i] == 0 and A[1,i] == 0 and A[2,i] == 0:
return True
if A[0,0] == 0 and A[1,1] == 0 and A[2,2] == 0:
return True
if A[0,2] == 0 and A[1,1] =... | import numpy as np
def check(A):
for i in range(3):
if A[i,0] == 0 and A[i,1] == 0 and A[i,2] == 0:
return True
if A[0,i] == 0 and A[1,i] == 0 and A[2,i] == 0:
return True
if A[0,0] == 0 and A[1,1] == 0 and A[2,2] == 0:
return True
if A[0,2] == 0 and A[1,1] =... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 549,647 | 549,648 | u553308611 | python |
p02760 | A = [[int(i) for i in input().split()] for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
f = [[False]*3 for _ in range(3)]
for b in B:
for i in range(3):
for j in range(3):
if A[i][j] == b:
f[i][j] = True
for i in range(3):
if all(f[i]):
break
... | A = [[int(i) for i in input().split()] for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
f = [[False]*3 for _ in range(3)]
for b in B:
for i in range(3):
for j in range(3):
if A[i][j] == b:
f[i][j] = True
for i in range(3):
if all(f[i]):
break
... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,653 | 549,654 | u196579381 | python |
p02760 | a=[]
for i in range(3):
a.append(list(map(int,input().split())))
b=[[0 for i in range(3)] for j in range(3)]
n=int(input())
for i in range(n):
p=int(input())
for j in range(3):
for k in range(3):
if p==a[i][j]:
b[i][j]=1
for i in range(3):
x=0
y=0
for j in ran... | a=[]
for i in range(3):
a.append(list(map(int,input().split())))
b=[[0 for i in range(3)] for j in range(3)]
n=int(input())
for i in range(n):
p=int(input())
for j in range(3):
for k in range(3):
if p==a[j][k]:
b[j][k]=1
for i in range(3):
x=0
y=0
for j in ran... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change"
] | 549,655 | 549,656 | u223904637 | python |
p02760 | A = [[0 for _ in range(3)] for _ in range(3)]
for i in range(3):
Arow = list(map(int, input().split()))
A[i] = Arow
N = int(input())
B = []
for _ in range(N):
B.append(int(input()))
flag = [[False for _ in range(3)] for _ in range(3)]
f = False
for b in B:
for row in range(3):
for col in ra... | A = [[0 for _ in range(3)] for _ in range(3)]
for i in range(3):
Arow = list(map(int, input().split()))
A[i] = Arow
N = int(input())
B = []
for _ in range(N):
B.append(int(input()))
flag = [[False for _ in range(3)] for _ in range(3)]
f = False
for b in B:
for row in range(3):
for col in ra... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,665 | 549,666 | u047102107 | python |
p02760 | A = [tuple(map(int, input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
B = [[False]*3 for i in range(3)]
for x in b:
for i in range(3):
for j in range(3):
if A[i][j] == x:
B[i][j] = True
flag = False
for i in range(3):
for j in range(... | A = [tuple(map(int, input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
B = [[False]*3 for i in range(3)]
for x in b:
for i in range(3):
for j in range(3):
if A[i][j] == x:
B[i][j] = True
break
flag = False
for i in range(... | [
"control_flow.break.add",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 549,669 | 549,670 | u814986259 | python |
p02760 | a = [[int(i) for i in input().split()] for _ in range(3)]
c=[[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:
c[i][j] = True
ok = False
for i in range(3):
d = True
for j in range(... | a = [[int(i) for i in input().split()] for _ in range(3)]
c=[[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:
c[i][j] = True
ok = False
for i in range(3):
d = True
for j in range(3... | [
"assignment.remove"
] | 549,671 | 549,672 | u571969099 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
for i in range(n):
x = int(input())
for j in range(3):
for k in range(3):
if a[j][k]==x: a[j][k] = 0
ans = dcnt1 = dcnt2 = 0
for i in range(3):
vcnt = hcnt = 0
for j in range(... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
for i in range(n):
x = int(input())
for j in range(3):
for k in range(3):
if a[j][k]==x: a[j][k] = 0
ans = dcnt1 = dcnt2 = 0
for i in range(3):
vcnt = hcnt = 0
for j in range(... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 549,685 | 549,686 | u242031676 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
A = [[0, 0, 0] 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] = 1
ans = 0
for i in range(3):
if sum(A[i]) == 3:
ans = 1... | a = [list(map(int, input().split())) for _ in range(3)]
A = [[0, 0, 0] 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] = 1
ans = 0
for i in range(3):
if sum(A[i]) == 3:
ans = 1... | [
"assignment.add"
] | 549,687 | 549,688 | u102126195 | python |
p02760 | l = []
for i in range(3):
l.append(list(map(int,input().split())))
n = int(input())
b=[]
for _ in range(n):
b.append(int(input()))
for i in range(3):
if l[i][0] in b and l[i][0] in b and l[i][0] in b :
print("Yes")
exit()
for j in range(3):
if l[0][j] in b and l[0][j] in b and l[0][j] i... | l = []
for i in range(3):
l.append(list(map(int,input().split())))
n = int(input())
b=[]
for _ in range(n):
b.append(int(input()))
for i in range(3):
if l[i][0] in b and l[i][1] in b and l[i][2] in b :
print("Yes")
exit()
for j in range(3):
if l[0][j] in b and l[1][j] in b and l[2][j] i... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 549,718 | 549,719 | u358254559 | python |
p02760 | import sys
from math import factorial
def main(S):
pass
if __name__ == '__main__':
A = []
B = [0] * 9
for i in range(3):
A += list(map(int, input().split()))
n = int(input())
for i in range(n):
tmp = int(input())
for j in range(9):
if A[j] == tmp:
... | import sys
from math import factorial
def main(S):
pass
if __name__ == '__main__':
A = []
B = [0] * 9
for i in range(3):
A += list(map(int, input().split()))
n = int(input())
for i in range(n):
tmp = int(input())
for j in range(9):
if A[j] == tmp:
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,752 | 549,753 | u442810826 | python |
p02761 | n, m = map(int, input().split())
sc = [[int(x) for x in input().split()] for _ in range(m)]
ans = -1
for i in range(1, 10**n):
if len(str(i)) != n:
continue
x = str(i)
for s, c in sc:
if int(x[s-1]) != c:
break
else:
print(i)
exit()
print(-1) | n, m = map(int, input().split())
sc = [[int(x) for x in input().split()] for _ in range(m)]
ans = -1
for i in range(10**n):
if len(str(i)) != n:
continue
x = str(i)
for s, c in sc:
if int(x[s-1]) != c:
break
else:
print(i)
exit()
print(-1) | [
"call.arguments.change"
] | 549,802 | 549,803 | u709799578 | python |
p02761 | N,M=map(int,input().split())
SC=[list(map(int,input().split())) for i in range(M)]
begin=10**(N-1)
end=10**N
if N==1:
begin=0
for i in range(begin,end):
i=str(i)
for s,c in SC:
if i[s-1]!=c:
break
else:
print(i)
exit()
print(-1) | N,M=map(int,input().split())
SC=[list(map(int,input().split())) for i in range(M)]
begin=10**(N-1)
end=10**N
if N==1:
begin=0
for i in range(begin,end):
i=str(i)
for s,c in SC:
if i[s-1]!=str(c):
break
else:
print(i)
exit()
print(-1) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 549,804 | 549,805 | u225020286 | python |
p02761 | def main():
N,M = map(int, input().split())
x = ["0"]*N
hfixed = [False]*N
flag = False
for _ in range(M):
s,c = input().split()
# 左からsけた目がc
idx = int(s)-1
if hfixed[idx] and x[idx]!=c:
flag = True
break
else:
hfixed[idx] = ... | def main():
N,M = map(int, input().split())
x = ["0"]*N
hfixed = [False]*N
flag = False
for _ in range(M):
s,c = input().split()
# 左からsけた目がc
idx = int(s)-1
if hfixed[idx] and x[idx]!=c:
flag = True
break
else:
hfixed[idx] = ... | [
"control_flow.branch.if.condition.change"
] | 549,840 | 549,841 | u432251613 | python |
p02761 | n, m = map(int, input().split())
s, c = [], []
for i in range(m):
a, b = map(int, input().split())
s.append(a - 1)
c.append(b)
for i in range(1, 1000):
now = str(i)
if len(now) != n:
continue
is_condition = True
for j in range(m):
if int(now[s[j]]) != c[j]:
is_... | n, m = map(int, input().split())
s, c = [], []
for i in range(m):
a, b = map(int, input().split())
s.append(a - 1)
c.append(b)
for i in range(0, 1000):
now = str(i)
if len(now) != n:
continue
is_condition = True
for j in range(m):
if int(now[s[j]]) != c[j]:
is_... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 549,852 | 549,853 | u627803856 | python |
p02761 | n,m = map(int,input().split())
digit = [0]*(m)
value = [0]*(m)
for i in range(m):
digit[i],value[i] = map(int,input().split())
#全探索
ans = 0
for i in range(keta, 10**3):
s = str(i)
if len(s)!=n: continue
for j in range(m):
if int(s[digit[j]-1]) != value[j]:
break
else:
p... | n,m = map(int,input().split())
digit = [0]*(m)
value = [0]*(m)
for i in range(m):
digit[i],value[i] = map(int,input().split())
#全探索
ans = 0
for i in range(10**3):
s = str(i)
if len(s)!=n: continue
for j in range(m):
if int(s[digit[j]-1]) != value[j]:
break
else:
print(i... | [
"call.arguments.change"
] | 549,854 | 549,855 | u627803856 | python |
p02761 | n,m=map(int,input().split())
S,C=[], []
for i in range(m):
a,b=map(int,input().split())
S.append(a)
C.append(b)
for j in range(10**n):
if len(j)==n and all(str(j)[x-1]==str(y) for x,y in zip(S,C)):
print(j)
break;
else:
print(-1) | n,m=map(int,input().split())
S,C=[], []
for i in range(m):
a,b=map(int,input().split())
S.append(a)
C.append(b)
for j in range(10**n):
if len(str(j))==n and all(str(j)[x-1]==str(y) for x,y in zip(S,C)):
print(j)
break;
else:
print(-1) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 549,888 | 549,889 | u383450070 | python |
p02761 | N, M = map(int, input().split())
sc = [[int(i) for i in input().split()] for j in range(M)]
num_min = 10**(N-1)
num_max = 10**N
if N > 1:
i = num_min
else:
i = 0
ans = -1
while i < num_max:
num_list = []
rem = i
for j in range(N, 0, -1):
num_list.append(rem // 10**(j-1))
rem = i % 1... | N, M = map(int, input().split())
sc = [[int(i) for i in input().split()] for j in range(M)]
num_min = 10**(N-1)
num_max = 10**N
if N > 1:
i = num_min
else:
i = 0
ans = -1
while i < num_max:
num_list = []
rem = i
for j in range(N, 0, -1):
num_list.append(rem // 10**(j-1))
rem = i % 1... | [
"call.remove"
] | 549,892 | 549,893 | u884323674 | python |
p02761 | N,M=map(int,input().split())
slist=[]
for i in range(M):
slist.append(list(map(int,input().split())))
ans=["0"]*N
for i in range(N):
if ans[slist[i][0]-1]=="0":
ans[slist[i][0]-1]=slist[i][1]
elif ans[slist[i][0]-1]!=slist[i][1]:
ans=["-1"]
break
if N>1:
if ans[0]=="0":
... | N,M=map(int,input().split())
slist=[]
for i in range(M):
slist.append(list(map(int,input().split())))
ans=["0"]*N
for i in range(M):
if ans[slist[i][0]-1]=="0":
ans[slist[i][0]-1]=slist[i][1]
elif ans[slist[i][0]-1]!=slist[i][1]:
ans=["-1"]
break
if N>1:
if ans[0]=="0":
... | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 549,907 | 549,908 | u538537141 | python |
p02761 | N, M = [int(x) for x in input().split()]
S = []
for i in range(N):
S.append(None)
for i in range(M):
s, c = [int(x) for x in input().split()]
if S[s - 1] == None:
S[s - 1] = c
elif S[s - 1] == c:
pass
else:
S[0] = -1
break
if S[0] == 0:
if N == 1:
... | N, M = [int(x) for x in input().split()]
S = []
for i in range(N):
S.append(None)
for i in range(M):
s, c = [int(x) for x in input().split()]
if S[s - 1] == None:
S[s - 1] = c
elif S[s - 1] == c:
pass
else:
S[0] = -1
break
if S[0] == 0:
if N == 1:
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,913 | 549,914 | u842797390 | python |
p02761 | n,m=map(int,input().split())
ans=["a"]*n
for i in range(0,m):
s,c=map(int,input().split())
if ans[s-1]=="a" or ans[s-1]==c:
ans[s-1]=c
else:
print(-1)
break
else:
if n==1 and ans[0]=="a":
ans[0]=0
elif ans[0]=="a":
ans[0]=1
for i in range(0,n):
if ans[i]=="a":
ans[i]=0
if ans... | n,m=map(int,input().split())
ans=["a"]*n
for i in range(0,m):
s,c=map(int,input().split())
if ans[s-1]=="a" or ans[s-1]==c:
ans[s-1]=c
else:
print(-1)
break
else:
if n==1 and ans[0]=="a":
ans[0]=0
elif ans[0]=="a":
ans[0]=1
for i in range(0,n):
if ans[i]=="a":
ans[i]=0
if i>=... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,917 | 549,918 | u629350026 | python |
p02761 | n,m=map(int,input().split())
ans=["a"]*n
for i in range(0,m):
s,c=map(int,input().split())
if ans[s-1]=="a" or ans[s-1]==c:
ans[s-1]=c
else:
print(-1)
break
else:
if n==0 and ans[0]=="a":
ans[0]=0
elif ans[0]=="a":
ans[0]=1
for i in range(0,n):
if ans[i]=="a":
ans[i]=0
if ans... | n,m=map(int,input().split())
ans=["a"]*n
for i in range(0,m):
s,c=map(int,input().split())
if ans[s-1]=="a" or ans[s-1]==c:
ans[s-1]=c
else:
print(-1)
break
else:
if n==1 and ans[0]=="a":
ans[0]=0
elif ans[0]=="a":
ans[0]=1
for i in range(0,n):
if ans[i]=="a":
ans[i]=0
if i>=... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 549,919 | 549,918 | u629350026 | python |
p02761 | n,m=[int(_) for _ in input().split()]
if n==1:
ans=-1
for i in range(m):
s,c=[int(_)for _ in input().split()]
if ans!=-1 and ans != c:
print(-1)
exit()
else:
print(max(ans,0))
exit()
ans=[-1 for i in range(n)]
for i in range(m):
s,c=[int(_)for _ in input().split()]
if (an... | n,m=[int(_) for _ in input().split()]
if n==1:
ans=-1
for i in range(m):
s,c=[int(_)for _ in input().split()]
if ans!=-1 and ans != c:
print(-1)
exit()
ans=c
else:
print(max(ans,0))
exit()
ans=[-1 for i in range(n)]
for i in range(m):
s,c=[int(_)for _ in input().split()]
i... | [
"assignment.add"
] | 549,922 | 549,923 | u026788530 | python |
p02761 | n,m=[int(_) for _ in input().split()]
if n==1:
ans=-1
for i in range(m):
s,c=[int(_)for _ in input().split()]
if ans!=-1 and ans != c:
print(-1)
exit()
else:
print(max(ans,0))
exit()
ans=[-1 for i in range(n)]
for i in range(m):
s,c=[int(_)for _ in input().split()]
if (ans[s-1... | n,m=[int(_) for _ in input().split()]
if n==1:
ans=-1
for i in range(m):
s,c=[int(_)for _ in input().split()]
if ans!=-1 and ans != c:
print(-1)
exit()
ans=c
else:
print(max(ans,0))
exit()
ans=[-1 for i in range(n)]
for i in range(m):
s,c=[int(_)for _ in input().split()]
i... | [
"assignment.add"
] | 549,924 | 549,923 | u026788530 | python |
p02761 | N, M = map(int, input().split())
sc = [list(map(int, input().split())) for _ in range(M)]
ans = 0
exist = False
if N == 1:
x = 0
else:
x = 10 ** (N - 1)
for i in range(x, 1000):
s = str(i)
f = True
for j in range(len(s)):
if int(s[sc[j][0] - 1]) != sc[j][1]:
f = False
break
if f:
ans = i... | N, M = map(int, input().split())
sc = [list(map(int, input().split())) for _ in range(M)]
ans = 0
exist = False
if N == 1:
x = 0
else:
x = 10 ** (N - 1)
for i in range(x, 1000):
s = str(i)
f = True
for j in range(M):
if int(s[sc[j][0] - 1]) != sc[j][1]:
f = False
break
if f:
ans = i
... | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 549,934 | 549,935 | u238084414 | python |
p02761 | def main():
n, m = map(int, input().split())
if m == 0:
if n == 1:
print(1)
elif n == 2:
print(10)
else:
print(100)
return
s_ls =[]
c_ls =[]
for _ in range(m):
s, c = map(int, input().split())
s_ls.append(s)
... | def main():
n, m = map(int, input().split())
if m == 0:
if n == 1:
print(0)
elif n == 2:
print(10)
else:
print(100)
return
s_ls =[]
c_ls =[]
for _ in range(m):
s, c = map(int, input().split())
s_ls.append(s)
... | [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 549,942 | 549,943 | u743420240 | python |
p02761 | def main():
n, m = map(int, input().split())
if m == 0:
if n == 1:
print(1)
elif n == 2:
print(10)
else:
print(100)
return
s_ls =[]
c_ls =[]
for _ in range(m):
s, c = map(int, input().split())
s_ls.append(s)
... | def main():
n, m = map(int, input().split())
if m == 0:
if n == 1:
print(0)
elif n == 2:
print(10)
else:
print(100)
return
s_ls =[]
c_ls =[]
for _ in range(m):
s, c = map(int, input().split())
s_ls.append(s)
... | [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change",
"control_flow.loop.range.bounds.lower.change"
] | 549,944 | 549,943 | u743420240 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.