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 |
|---|---|---|---|---|---|---|---|
p02759 | print(max(round(float(input())/2),1)) | import math;print(max(math.ceil(float(input())/2),1)) | [
"call.arguments.change"
] | 546,024 | 546,025 | u025463382 | python |
p02759 | a=int(input())
b=int2((a+1)/2)
print(b) | # -*- coding: utf-8 -*-
a=int(input())
b=int((a+1)/2)
print(b) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 546,026 | 546,027 | u941022948 | python |
p02759 | import math
print(math.ceil(int(input()) / 4)) | import math
print(math.ceil(int(input()) / 2))
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 546,039 | 546,040 | u068210419 | python |
p02759 | import sys
import math
import fractions
import itertools
from collections import deque
import copy
import bisect
MOD = 10 ** 9 + 7
INF = 10 ** 18 + 7
input = lambda: sys.stdin.readline().strip()
N = int(input())
print(int(N+1//2)) | import sys
import math
import fractions
import itertools
from collections import deque
import copy
import bisect
MOD = 10 ** 9 + 7
INF = 10 ** 18 + 7
input = lambda: sys.stdin.readline().strip()
N = int(input())
print(int((N+1)//2)) | [
"call.arguments.change"
] | 546,053 | 546,054 | u385244248 | python |
p02759 | N = input()
ans = int((N+1) / 2)
print(ans) | N = int(input())
ans = int((N+1) / 2)
print(ans) | [
"call.add",
"call.arguments.change"
] | 546,063 | 546,064 | u418502493 | python |
p02759 |
n = int(input())
print(n//2) |
n = int(input())
print((n+1)//2) | [
"call.arguments.change"
] | 546,071 | 546,072 | u325227960 | python |
p02760 | def Judge(a):
col=[]
diag1=0
diag2=0
for i in range(3):
if(a[i].count(0)==3):
return 1
break
if(a[0][i]==0):
col.append(0)
if(a[1][i]==0):
col.append(1)
if(a[2][i]==0):
col.append(2)
if(a[i][i]==0):
diag1+=1
if(a[i][-(i+1)]==0):
diag2+=1
if(di... | def Judge(a):
col=[]
diag1=0
diag2=0
for i in range(3):
if(a[i].count(0)==3):
return 1
break
if(a[i][0]==0):
col.append(0)
if(a[i][1]==0):
col.append(1)
if(a[i][2]==0):
col.append(2)
if(a[i][i]==0):
diag1+=1
if(a[i][-(i+1)]==0):
diag2+=1
if(di... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.remove",
"literal.replace.add"
] | 546,095 | 546,096 | u674959030 | python |
p02760 | lst = [ [ int(i) for i in input().split() ] for j in range(3) ]
n = int(input())
for _ in range(n):
x = int(input())
for d in lst:
if d[0] == x:
d[0] = -1
elif d[1] == x:
d[1] = -1
elif d[2] == x:
d[2] = -1
print(lst)
for d in lst:
if d[0] == d[1] == d[2] == -1:
print('Yes')
... | lst = [ [ int(i) for i in input().split() ] for j in range(3) ]
n = int(input())
for _ in range(n):
x = int(input())
for d in lst:
if d[0] == x:
d[0] = -1
elif d[1] == x:
d[1] = -1
elif d[2] == x:
d[2] = -1
for d in lst:
if d[0] == d[1] == d[2] == -1:
print('Yes')
exit()
f... | [
"call.remove"
] | 546,097 | 546,098 | u531456543 | python |
p02760 | a=[list(map(int,input().split())) for _ in range(3)]
n=int(input())
b=[int(input()) for _ in range(n)]
used=[[False]*3 for _ in range(3)]
for k in range(n):
for i in range(3):
for j in range(3):
if a[i][j]==b[k]:
used[i][j]==True
for i in range(3):
if used[0][i] and used[1][... | a=[list(map(int,input().split())) for _ in range(3)]
n=int(input())
b=[int(input()) for _ in range(n)]
used=[[False]*3 for _ in range(3)]
for k in range(n):
for i in range(3):
for j in range(3):
if a[i][j]==b[k]:
used[i][j]=True
for i in range(3):
if used[0][i] and used[1][i... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 546,099 | 546,100 | u886902015 | python |
p02760 | table=[[0]*3 for _ in range(3)]
A=[list(map(int,input().split())) for _ in range(3)]
A=sum(A,[])
N=int(input())
B=[int(input()) for _ in range(N)]
for b in B:
tmp=[i for i,x in enumerate(A) if x==b]
for t in tmp:
table[t//3][t%3]=1
flag=False
n1,n2=0,0
for i in range(3):
if sum(table[i])==3: flag=... | table=[[0]*3 for _ in range(3)]
A=[list(map(int,input().split())) for _ in range(3)]
A=sum(A,[])
N=int(input())
B=[int(input()) for _ in range(N)]
for b in B:
tmp=[i for i,x in enumerate(A) if x==b]
for t in tmp:
table[t//3][t%3]=1
flag=False
n1,n2=0,0
for i in range(3):
if sum(table[i])==3: flag=... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,101 | 546,102 | u130076114 | python |
p02760 | import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
de... | import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
de... | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 546,103 | 546,104 | u190850294 | 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(3):
for j in range(3):
for k in range(n):
if A[i][j]==b[k]:
A[i][j]=-1
if A[0][0]==-1 and A[1][1]==-1 and A[2][2]==-1:
print("Yes")
exit()
elif A[0][2]==-... | 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(3):
for j in range(3):
for k in range(n):
if A[i][j]==b[k]:
A[i][j]=-1
if A[0][0]==-1 and A[1][1]==-1 and A[2][2]==-1:
print("Yes")
exit()
elif A[0][2]==-... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,109 | 546,110 | u877389510 | python |
p02760 | n=3
num_list = []
for i in range(n):
num_list.append(list(map(int,input().split())))
N=int(input())
list1=[int(input()) for _ in range(N)]
list2=[]
i=0
while i<=2:
j=0
while j<=2:
list2.append(num_list[i][j])
j=j+1
i=i+1
s=0
for k in list2:
if list1.count(k)==1:
list2[s]=... | n=3
num_list = []
for i in range(n):
num_list.append(list(map(int,input().split())))
N=int(input())
list1=[int(input()) for _ in range(N)]
list2=[]
i=0
while i<=2:
j=0
while j<=2:
list2.append(num_list[i][j])
j=j+1
i=i+1
s=0
for k in list2:
if list1.count(k)==1:
list2[s]=... | [
"call.remove"
] | 546,124 | 546,125 | u136282556 | python |
p02760 | n=3
num_list = []
for i in range(n):
num_list.append(list(map(int,input().split())))
N=int(input())
list1=[int(input()) for _ in range(N)]
list2=[]
i=0
while i<=2:
j=0
while j<=2:
list2.append(num_list[i][j])
j=j+1
i=i+1
s=0
for k in list2:
if list1.count(k)==1:
list2[s]=... | n=3
num_list = []
for i in range(n):
num_list.append(list(map(int,input().split())))
N=int(input())
list1=[int(input()) for _ in range(N)]
list2=[]
i=0
while i<=2:
j=0
while j<=2:
list2.append(num_list[i][j])
j=j+1
i=i+1
s=0
for k in list2:
if list1.count(k)==1:
list2[s]=... | [
"assignment.add"
] | 546,126 | 546,125 | u136282556 | python |
p02760 | A11,A12,A13 = map(int,input().split())
A21,A22,A23 = map(int,input().split())
A31,A32,A33 = map(int,input().split())
Alist = []
Alist.append(A11)
Alist.append(A12)
Alist.append(A13)
Alist.append(A21)
Alist.append(A22)
Alist.append(A23)
Alist.append(A31)
Alist.append(A32)
Alist.append(A33)
bingolist =[0]*9
N = int(inp... | A11,A12,A13 = map(int,input().split())
A21,A22,A23 = map(int,input().split())
A31,A32,A33 = map(int,input().split())
Alist = []
Alist.append(A11)
Alist.append(A12)
Alist.append(A13)
Alist.append(A21)
Alist.append(A22)
Alist.append(A23)
Alist.append(A31)
Alist.append(A32)
Alist.append(A33)
bingolist =[0]*9
N = int(inp... | [
"call.remove"
] | 546,127 | 546,128 | u302697704 | python |
p02757 | import sys,bisect
input = sys.stdin.readline
n,p = map(int,input().split())
s = list(input())
for i in range(n):
s[i] = int(s[i])
if p == 2 or p == 5:
res = 0
for i in range(n):
if s[i]%p == 0:
res += i+1
print(res)
else:
d = 1
q = [0]
for i in range(n-1,-1,-1):
... | import sys,bisect
input = sys.stdin.readline
n,p = map(int,input().split())
s = list(input())
for i in range(n):
s[i] = int(s[i])
if p == 2 or p == 5:
res = 0
for i in range(n):
if s[i]%p == 0:
res += i+1
print(res)
else:
d = 1
q = [0]
for i in range(n-1,-1,-1):
... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 546,135 | 546,136 | u223904637 | python |
p02757 | import sys,bisect
input = sys.stdin.readline
n,p = map(int,input().split())
s = list(input())
for i in range(n):
s[i] = int(s[i])
if p == 2 or p == 5:
res = 0
for i in range(n):
if s[i]%p == 0:
res += i+1
print(res)
else:
d = 1
q = [0]
for i in range(n-1,-1,-1):
... | import sys,bisect
input = sys.stdin.readline
n,p = map(int,input().split())
s = list(input())
for i in range(n):
s[i] = int(s[i])
if p == 2 or p == 5:
res = 0
for i in range(n):
if s[i]%p == 0:
res += i+1
print(res)
else:
d = 1
q = [0]
for i in range(n-1,-1,-1):
... | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 546,137 | 546,136 | u223904637 | python |
p02757 | from collections import Counter
import sys
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number)... | from collections import Counter
import sys
sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number)... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 546,169 | 546,170 | u353797797 | python |
p02757 | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | [
"control_flow.branch.if.condition.change"
] | 546,191 | 546,192 | u499381410 | python |
p02757 | n,p=map(int,input().split())
s=input()[::-1]
A=[0]*n
A[0]=int(s[0])
t=1
for i in range(1,n):
A[i]=(int(s[i])*t+A[i-1])%p
t=(t*10)%p
ans=0
import collections
D=collections.defaultdict(int)
D[0]=1
if p!=2 and p!=5:
for i in range(n):
ans+=D[A[i]]
D[A[i]]+=1
print(ans)
else:
s=s[::-1]
ans=0
for i in ... | n,p=map(int,input().split())
s=input()[::-1]
A=[0]*n
A[0]=int(s[0])%p
t=10
for i in range(1,n):
A[i]=(int(s[i])*t+A[i-1])%p
t=(t*10)%p
ans=0
import collections
D=collections.defaultdict(int)
D[0]=1
if p!=2 and p!=5:
for i in range(n):
ans+=D[A[i]]
D[A[i]]+=1
print(ans)
else:
s=s[::-1]
ans=0
for i ... | [
"literal.number.integer.change",
"assignment.value.change"
] | 546,210 | 546,211 | u969190727 | python |
p02757 | n,p=map(int,input().split())
s=input()[::-1]
A=[0]*n
A[0]=int(s[0])
t=1
for i in range(1,n):
A[i]=(int(s[i])*t+A[i-1])%p
t=(t*10)%p
ans=0
import collections
D=collections.defaultdict(int)
D[0]=1
if p!=2 and p!=5:
for i in range(n):
ans+=D[p-A[i]]
D[A[i]]+=1
print(ans)
else:
s=s[::-1]
ans=0
for i i... | n,p=map(int,input().split())
s=input()[::-1]
A=[0]*n
A[0]=int(s[0])%p
t=10
for i in range(1,n):
A[i]=(int(s[i])*t+A[i-1])%p
t=(t*10)%p
ans=0
import collections
D=collections.defaultdict(int)
D[0]=1
if p!=2 and p!=5:
for i in range(n):
ans+=D[A[i]]
D[A[i]]+=1
print(ans)
else:
s=s[::-1]
ans=0
for i ... | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.remove"
] | 546,212 | 546,211 | u969190727 | python |
p02759 | N=int(input())
S=N%2
if S==0:
print(N//2)
else:
print(N//2)+1 | N=int(input())
S=N%2
if S==0:
print(N//2)
else:
print(N//2+1)
| [
"call.arguments.change"
] | 546,240 | 546,241 | u363836311 | python |
p02759 | N = int(input())
if N%2 == 0:
ans = N/2
else:
ans = N/2+1
print(ans) | N = int(input())
if N%2 == 0:
ans = int(N/2)
else:
ans = int(N/2)+1
print(ans) | [
"call.add",
"call.arguments.change"
] | 546,248 | 546,249 | u039934639 | python |
p02759 | N = int(input())
ans = N//2 if N%2==0 else N//2+1
print(N//2)
| N = int(input())
ans = N//2 if N%2==0 else N//2 + 1
print(ans)
| [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.binary.remove"
] | 546,258 | 546,259 | u476604182 | python |
p02759 | N = int(input())
N=N/2
print(round(N)) | import math
N = int(input())
N=N/2
print(math.ceil(N)) | [
"call.arguments.change",
"io.output.change"
] | 546,276 | 546,277 | u649423802 | python |
p02759 | a=int(input())
b=a//2
if b==1:
b=b+1
print(b) | a=int(input())
b=a//2
if a%2==1:
b=b+1
print(b) | [
"control_flow.branch.if.condition.change"
] | 546,288 | 546,289 | u631579948 | python |
p02759 | N = int(input())
xx = 0
if N % 2 == 1:
xx = (N / 2) + 1
else:
xx = (N / 2)
print(xx)
| N = int(input())
xx = 0
if N % 2 == 1:
xx = (N / 2) + 1
else:
xx = (N / 2)
print(int(xx))
| [
"call.arguments.add",
"call.arguments.change"
] | 546,300 | 546,301 | u529500825 | python |
p02759 | N=int(input())
if N == 1:
print(1)
elif N == 2:
print(1)
else:
if N % 2 == 1:
print ((N / 2) + 1)
else:
print (N / 2) | N=int(input())
if N == 1:
print(1)
elif N == 2:
print(1)
else:
if N % 2 == 1:
print (int(N / 2) + 1)
else:
print (int(N / 2)) | [
"call.add",
"type_conversion.to_integer.change",
"type_conversion.to_number.change",
"call.arguments.change"
] | 546,311 | 546,312 | u296215701 | python |
p02759 |
def main():
n = int(input())
print((n//2)+1)
if __name__ == "__main__":
main() |
def main():
n = int(input())
print((n+1)//2)
if __name__ == "__main__":
main() | [
"call.arguments.change"
] | 546,317 | 546,318 | u934052933 | python |
p02759 | N = int(input())
if N%2 == 0:
print(int(N%2))
else:
print(int(N/2)+1) | N = int(input())
if N%2 == 0:
print(int(N/2))
else:
print(int(N/2)+1) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 546,352 | 546,353 | u318740143 | python |
p02759 | import bisect, collections
def solution():
n = input().strip()
print(int(n)//2)
def main():
# T = int(input().strip())
for _ in range(1):
solution()
main() | import bisect, collections
def solution():
n = input().strip()
print((int(n)+1)//2)
def main():
# T = int(input().strip())
for _ in range(1):
solution()
main() | [
"call.arguments.change"
] | 546,391 | 546,392 | u053105324 | python |
p02760 | def check(a):
m = [-1, -1, -1]
if [a[0][0], a[1][1],a[2][2]] == m:
print("Yes")
return
if [a[0][2], a[1][1], a[2][0]] == m:
print("Yes")
return
for i in range(3):
if a[i] == m:
print("Yes")
return
elif [r[i] for r in a] == m:
... | def check(a):
m = [-1, -1, -1]
if [a[0][0], a[1][1],a[2][2]] == m:
print("Yes")
return
if [a[0][2], a[1][1], a[2][0]] == m:
print("Yes")
return
for i in range(3):
if a[i] == m:
print("Yes")
return
elif [r[i] for r in a] == m:
... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 546,407 | 546,408 | u137646745 | python |
p02760 | import sys
import itertools
def resolve(in_):
A = tuple(map(int, itertools.chain.from_iterable(line.split() for line in itertools.islice(in_, 3))))
assert len(A) == 9
C = [False] * 9
N = int(next(in_))
# B = tuple(map(int, itertools.islice(in_, N)))
B = frozenset(map(int, itertools.islice(in_, ... | import sys
import itertools
def resolve(in_):
A = tuple(map(int, itertools.chain.from_iterable(line.split() for line in itertools.islice(in_, 3))))
assert len(A) == 9
C = [False] * 9
N = int(next(in_))
# B = tuple(map(int, itertools.islice(in_, N)))
B = frozenset(map(int, itertools.islice(in_, ... | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 546,413 | 546,412 | u317423698 | python |
p02760 |
def checkBingo(A,c):
for i in range(3):
for j in range(3):
if A[i][j]==c:
A[i][j]=0
for i in range(3):
if min(A[i])==0 :
return 1
for i in range(3):
if A[0][i]==0 and A[1][i]==0 and A[2][i]==0:
return 1
if A[0][0]==0 and A[1]... |
def checkBingo(A,c):
for i in range(3):
for j in range(3):
if A[i][j]==c:
A[i][j]=0
for i in range(3):
if max(A[i])==0 :
return 1
for i in range(3):
if A[0][i]==0 and A[1][i]==0 and A[2][i]==0:
return 1
if A[0][0]==0 and A[1]... | [
"misc.opposites",
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change",
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 546,423 | 546,424 | u707030679 | python |
p02760 | # B - Bingo
import itertools
A = list()
for o in range(3):
a = list(map(int, input().split()))
A.append(a)
N = int(input())
b = list(int(input()) for p in range(N))#mapオブジェクトにlistをつける
bingo = [A[0],A[1],A[2],[A[0][0],A[1][0],A[2][0]],[A[1][0],A[1][1],A[2][1]],[A[2][0],A[2][1],A[2][2]],[A[0][0],A[1][1],A[2][2]]... | # B - Bingo
import itertools
A = list()
for o in range(3):
a = list(map(int, input().split()))
A.append(a)
N = int(input())
b = list(int(input()) for p in range(N))#mapオブジェクトにlistをつける
bingo = [A[0],A[1],A[2],[A[0][0],A[1][0],A[2][0]],[A[0][1],A[1][1],A[2][1]],[A[0][0],A[1][1],A[2][2]],[A[0][2],A[1][2],A[2][2]]... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change"
] | 546,431 | 546,432 | u411923565 | python |
p02760 | A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
B=[int(input()) for _ in range(N)]
S=[[0,0,0] for _ in range(3)]
for b in B:
for i in range(3):
if b in A[i]:
S[i][A[i].index(b)] = 1
break
p = False
for a in S:
if sum(a)==3:
p = True
break
if not p:
for i in range(3):
... | A=[list(map(int,input().split())) for _ in range(3)]
N=int(input())
B=[int(input()) for _ in range(N)]
S=[[0,0,0] for _ in range(3)]
for b in B:
for i in range(3):
if b in A[i]:
S[i][A[i].index(b)] = 1
break
p = False
for a in S:
if sum(a)==3:
p = True
break
if not p:
for i in range(3):
... | [
"call.remove"
] | 546,436 | 546,437 | u054825571 | python |
p02760 | #Bingo
bingo = [list(map(int,input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
#縦横斜めで8通り。
cnt = [0]*8
for i in range(3):
for j in range(3):
if bingo[i][j] in b:
cnt[i] += 1
cnt[j+3] += 1
if i == j:
cnt[-1] += 1
... | #Bingo
bingo = [list(map(int,input().split())) for i in range(3)]
N = int(input())
b = [int(input()) for i in range(N)]
#縦横斜めで8通り。
cnt = [0]*8
for i in range(3):
for j in range(3):
if bingo[i][j] in b:
cnt[i] += 1
cnt[j+3] += 1
if i == j:
cnt[-1] += 1
... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 546,442 | 546,443 | u273242084 | python |
p02760 | l = []
for _ in range(3):
l += list(map(int, input().split()))
n = int(input())
for _ in range(n):
b = int(input())
if b in l:
l[l.index(b)] = 0
for i in range(3):
if sum(l[0+3*i:3+3*i]) == 0:
print("Yes")
exit()
if sum(l[i:8:3]) == 0:
print("Yes")
exit()
if (l[0]+l[4]+l[8]) == 0:
... | l = []
for _ in range(3):
l += list(map(int, input().split()))
n = int(input())
for _ in range(n):
b = int(input())
if b in l:
l[l.index(b)] = 0
for i in range(3):
if sum(l[0+3*i:3+3*i]) == 0:
print("Yes")
exit()
if sum(l[i:9:3]) == 0:
print("Yes")
exit()
if (l[0]+l[4]+l[8]) == 0:
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,448 | 546,449 | u122495382 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
a = []
Atf = [[False] * 3 for _ in range(3)]
for i in range(3):
for aa in A[i]:
a.append(aa)
for b in B:
if b in a:
for i in range(3):
for j in range(3):
... | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
a = []
Atf = [[False] * 3 for _ in range(3)]
for i in range(3):
for aa in A[i]:
a.append(aa)
for b in B:
if b in a:
for i in range(3):
for j in range(3):
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 546,450 | 546,451 | u758815106 | python |
p02760 | a = []
for _ in range(3):
a += list(map(int, input().split()))
n = int(input())
for _ in range(n):
b = int(input())
for i in range(9):
if a[i] == b:
a[i] = 0
# print(a)
for i in range(3):
if sum(a[i*3:i*3+3]) == 0:
print('Yes')
exit()
if sum(a[i:3:9]) == 0:
... | a = []
for _ in range(3):
a += list(map(int, input().split()))
n = int(input())
for _ in range(n):
b = int(input())
for i in range(9):
if a[i] == b:
a[i] = 0
# print(a)
for i in range(3):
if sum(a[i*3:i*3+3]) == 0:
print('Yes')
exit()
if sum(a[i:9:3]) == 0:
... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 546,452 | 546,453 | u363421241 | 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()])
tf = [[False for i in range(3)] for j 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... | 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()])
tf = [[False for i in range(3)] for j 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... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,464 | 546,465 | u347600233 | python |
p02760 | import numpy as np
a = [[input().split() for l in range(3)]]
a = np.ravel(a)
n = int(input())
b = [input() for i in range(n)]
ans = 'No'
def check(a,b):
return set(a).issubset(b)
for i in range(3):
if check(a[i*3:(i*3)+3],b) or check(a[i:i+6:3],b) or check(a[0:8:4],b) or check(a[2:6:2],b):
ans = 'Yes'... | # ABC157 B
import numpy as np
a = [[input().split() for l in range(3)]]
a = np.ravel(a)
n = int(input())
b = [input() for i in range(n)]
ans = 'No'
def check(a,b):
return set(a).issubset(b)
for i in range(3):
if check(a[i*3:(i*3)+3],b) or check(a[i:i+7:3],b) or check(a[0:9:4],b) or check(a[2:7:2],b):
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,480 | 546,481 | u342062419 | python |
p02760 | a1=input("").split(" ")
a2=input("").split(" ")
a3=input("").split(" ")
lista=[]
listmp=[]
for k in range(3):
listmp+=[int(a1[i])]
lista+=[listmp]
listmp=[]
for k in range(3):
listmp+=[int(a2[i])]
lista+=[listmp]
listmp=[]
for k in range(3):
listmp+=[int(a3[i])]
lista+=[listmp]
n=int(input(""))
listn=[]
for... | a1=input("").split(" ")
a2=input("").split(" ")
a3=input("").split(" ")
lista=[]
listmp=[]
for k in range(3):
listmp+=[int(a1[k])]
lista+=[listmp]
listmp=[]
for k in range(3):
listmp+=[int(a2[k])]
lista+=[listmp]
listmp=[]
for k in range(3):
listmp+=[int(a3[k])]
lista+=[listmp]
n=int(input(""))
listn=[]
for... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 546,482 | 546,483 | u455408345 | python |
p02760 | a=[list(map(int,input().split())) for _ in [0]*3]
n=int(input())
b=[int(input()) for _ in range(n)]
import numpy as np
for i in range(3):
a[i]=[1 if x in b else 0 for x in a[i]]
s_1=max(np.sum(a,axis=0))
s_2=max(np.sum(a,axis=1))
s_3=a[0][0]+a[1][1]+a[2][2]
s_4=a[0][2]+a[1][1]+a[2][0]
if max(s_1,s_2,s_3,s_4)==... | a=[list(map(int,input().split())) for _ in [0]*3]
n=int(input())
b=[int(input()) for _ in range(n)]
import numpy as np
for i in range(3):
a[i]=[1 if x in b else 0 for x in a[i]]
s_1=max(np.sum(a,axis=0))
s_2=max(np.sum(a,axis=1))
s_3=a[0][0]+a[1][1]+a[2][2]
s_4=a[0][2]+a[1][1]+a[2][0]
if max(s_1,s_2,s_3,s_4)==... | [
"call.remove"
] | 546,488 | 546,489 | u333700164 | python |
p02760 | import sys
card = [ list(map(int,input().split())) for a in range(3) ]
N = int(input())
point = [ int(input()) for a in range(N) ]
# cut holes
for I in point:
for J in card:
if I in J:
J.index(I)
J[J.index(I)] = "H"
print(card)
# vertical check
for K in range(3):
check = set([ x... | import sys
card = [ list(map(int,input().split())) for a in range(3) ]
N = int(input())
point = [ int(input()) for a in range(N) ]
# cut holes
for I in point:
for J in card:
if I in J:
J.index(I)
J[J.index(I)] = "H"
# vertical check
for K in range(3):
check = set([ x[K] for x in... | [
"call.remove"
] | 546,492 | 546,493 | u190178779 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or \
boolean_matrix.sum(axis=0).max() >= 3 or \
np.diag(boolean_matrix).sum() >=... | import numpy as np
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or \
boolean_matrix.sum(axis=0).max() >= 3 or \
np.diag... | [] | 546,496 | 546,497 | u334983390 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or boolean_matrix.sum(axis=0).max() >= 3 or np.diag(boolean_matrix).sum() >= 3 o... | import numpy as np
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or \
boolean_matrix.sum(axis=0).max() >= 3 or \
np.diag... | [] | 546,498 | 546,497 | u334983390 | python |
p02760 | A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or \
boolean_matrix.sum(axis=0).max() >= 3 or \
np.diag(boolean_matrix).su... | import numpy as np
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = []
for j in range(N):
b = int(input())
B.append(b)
A = np.array(A)
B = np.array(B)
boolean_matrix = np.isin(A, B)
if boolean_matrix.sum(axis=1).max() >= 3 or \
boolean_matrix.sum(axis=0).max() >= 3 or \
np.diag... | [] | 546,499 | 546,497 | u334983390 | python |
p02760 | from collections import defaultdict
dic = defaultdict(list)
for i in range(3):
a = list(map(int,input().split()))
for j in range(3):
dic[a[j]].append([i,j])
n = int(input())
B = []
for _ in range(n):
b = int(input())
B.append(b)
h = [0]*3
w = [0]*3
d = 0
di = 0
for b in B:
if b not in dic:
... | from collections import defaultdict
dic = defaultdict(list)
for i in range(3):
a = list(map(int,input().split()))
for j in range(3):
dic[a[j]].append([i,j])
n = int(input())
B = []
for _ in range(n):
b = int(input())
B.append(b)
h = [0]*3
w = [0]*3
d = 0
di = 0
for b in B:
if b not in dic:
... | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 546,506 | 546,507 | u800396927 | python |
p02760 | list = [list(map(int,input().split())) for i in range(3)]
N = int(input())
A = [[0] * 3 for i in range(3)]
for i in range(N):
B = int(input())
for j in range(3):
for k in range(3):
if list[j][k] == B:
A[j][k] += 1
result = A[0][0] * A[0][1] * A[0][2]
result += A[1][0] * A[1][1] * A[1][2]
... | list = [list(map(int,input().split())) for i in range(3)]
N = int(input())
A = [[0] * 3 for i in range(3)]
for i in range(N):
B = int(input())
for j in range(3):
for k in range(3):
if list[j][k] == B:
A[j][k] += 1
result = A[0][0] * A[0][1] * A[0][2]
result += A[1][0] * A[1][1] * A[1][2]
... | [
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 546,510 | 546,511 | u375234305 | python |
p02760 | A=[list(map(int,input().split())) for _ in range(3)]
b=[i for i in [int(input()) for _ in range(int(input()))] for j in A if i in j]
A=[[1 if A[i][j] in b else 0 for j in range(len(A[i]))] for i in range(len(A))]
print('NYoe s'[any([sum(i) for i in A]) or any([sum(i) for i in list(zip(*A))]) or all([A[0][0],A[1][1],A[2... | A=[list(map(int,input().split())) for _ in range(3)]
b=[i for i in [int(input()) for _ in range(int(input()))] for j in A if i in j]
A=[[1 if A[i][j] in b else 0 for j in range(len(A[i]))] for i in range(len(A))]
print('NYoe s'[any([all(i) for i in A]) or any([all(i) for i in list(zip(*A))]) or all([A[0][0],A[1][1],A[2... | [
"identifier.change",
"call.function.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 546,515 | 546,516 | u014333473 | python |
p02760 | #!/usr/bin/env python3
import collections as cl
import sys
def II():
return int(sys.stdin.readline())
def MI():
return map(int, sys.stdin.readline().split())
def LI():
return list(map(int, sys.stdin.readline().split()))
def main():
bingo_num = []
for i in range(3):
N = LI()
... | #!/usr/bin/env python3
import collections as cl
import sys
def II():
return int(sys.stdin.readline())
def MI():
return map(int, sys.stdin.readline().split())
def LI():
return list(map(int, sys.stdin.readline().split()))
def main():
bingo_num = []
for i in range(3):
N = LI()
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,517 | 546,518 | u574922408 | python |
p02760 | X=[list(map(int,input().split()))for i in range(3)]
b=[int(input())for i in range(int(input()))]
for i in range(3):
X[i]=[1 if i in b else 0 for i in X[i]]
print("Yes" if 3>=max(*[sum(i)for i in X],*[sum([x[i] for x in X])for i in range(3)],X[0][0]+X[1][1]+X[2][2],X[0][2]+X[1][1]+X[2][0]) else "No") | X=[list(map(int,input().split()))for i in range(3)]
b=[int(input())for i in range(int(input()))]
for i in range(3):
X[i]=[1 if i in b else 0 for i in X[i]]
print("Yes" if 3<=max(*[sum(i)for i in X],*[sum([x[i] for x in X])for i in range(3)],X[0][0]+X[1][1]+X[2][2],X[0][2]+X[1][1]+X[2][0]) else "No") | [
"misc.opposites",
"expression.operator.compare.change",
"call.arguments.change",
"io.output.change"
] | 546,520 | 546,521 | u623814058 | python |
p02760 | import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)
def _S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rs... | import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)
def _S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rs... | [
"control_flow.branch.if.condition.change"
] | 546,522 | 546,523 | u602500004 | python |
p02760 | import sys
A = [0 for _ in range(3)]
for i in range(3):
A[i] = list(map(int, input().split()))
N = int(input())
B = [0 for _ in range(N)]
for i in range(N):
B[i] = int(input())
def bingo_judge(A, B):
# 縦列のビンゴを判定
for i in range(3):
flag = True
for a in [A[0][i], A[1][i], A[2][i]]:
... | import sys
A = [0 for _ in range(3)]
for i in range(3):
A[i] = list(map(int, input().split()))
N = int(input())
B = [0 for _ in range(N)]
for i in range(N):
B[i] = int(input())
def bingo_judge(A, B):
# 縦列のビンゴを判定
for i in range(3):
flag = True
for a in [A[0][i], A[1][i], A[2][i]]:
... | [
"assignment.add",
"assignment.remove"
] | 546,526 | 546,527 | u537217069 | python |
p02760 | l1 = list(map(int, input().split()))
l2 = list(map(int, input().split()))
l3 = list(map(int, input().split()))
l = l1 + l2 + l3
n = int(input())
bl = [int(input()) for _ in range(n)]
for i in range(len(l)):
for j in bl:
if l[i] == j:
l[i] = 0
rowwise = 1 if (sum(l[0:3]) == 0) | (sum(l[3:6]) ==... | l1 = list(map(int, input().split()))
l2 = list(map(int, input().split()))
l3 = list(map(int, input().split()))
l = l1 + l2 + l3
n = int(input())
bl = [int(input()) for _ in range(n)]
for i in range(len(l)):
for j in bl:
if l[i] == j:
l[i] = 0
rowwise = 1 if (sum(l[0:3]) == 0) | (sum(l[3:6]) ==... | [
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.unary.remove"
] | 546,529 | 546,530 | u333404917 | python |
p02760 | l1 = list(map(int, input().split()))
l2 = list(map(int, input().split()))
l3 = list(map(int, input().split()))
l = l1 + l2 + l3
n = int(input())
bl = [int(input()) for _ in range(n)]
for i in range(len(l)):
for j in bl:
if l[i] == j:
l[i] = 0
rowwise = 1 if (sum(l[0:3]) == 0) | (sum(l[3:6]) ==... | l1 = list(map(int, input().split()))
l2 = list(map(int, input().split()))
l3 = list(map(int, input().split()))
l = l1 + l2 + l3
n = int(input())
bl = [int(input()) for _ in range(n)]
for i in range(len(l)):
for j in bl:
if l[i] == j:
l[i] = 0
rowwise = 1 if (sum(l[0:3]) == 0) | (sum(l[3:6]) ==... | [
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.unary.remove",
"expression.operation.unary.arithmetic.remove"
] | 546,531 | 546,530 | u333404917 | python |
p02760 | import numpy as np
A=[]
for _ in range(3):
A.append(list(map(int,input().split())))
def bingo(x):
a=False
for s in range(3):
if sum(x[s])==3:a=True
for h in range(3):
if x[0][i]+x[1][i]+x[2][i]==3:a=True
if x[0][0]+x[1][1]+x[2][2]==3:a=True
if x[0][2]+x[1][1]+x[2][0]==3:a=True
r... | import numpy as np
A=[]
for _ in range(3):
A.append(list(map(int,input().split())))
def bingo(x):
a=False
for s in range(3):
if sum(x[s])==3:a=True
for h in range(3):
if x[0][h]+x[1][h]+x[2][h]==3:a=True
if x[0][0]+x[1][1]+x[2][2]==3:a=True
if x[0][2]+x[1][1]+x[2][0]==3:a=True
ret... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,536 | 546,537 | u201986772 | python |
p02760 | import numpy as np
A=[]
for _ in range(3):
A.append(list(map(int,input().split())))
def bingo(x):
a=False
for s in range(3):
if sum(x[0])==3:a=True
for h in range(3):
if x[0][i]+x[1][i]+x[2][i]==3:a=True
if x[0][0]+x[1][1]+x[2][2]==3:a=True
if x[0][2]+x[1][1]+x[2][0]==3:a=True
r... | import numpy as np
A=[]
for _ in range(3):
A.append(list(map(int,input().split())))
def bingo(x):
a=False
for s in range(3):
if sum(x[s])==3:a=True
for h in range(3):
if x[0][h]+x[1][h]+x[2][h]==3:a=True
if x[0][0]+x[1][1]+x[2][2]==3:a=True
if x[0][2]+x[1][1]+x[2][0]==3:a=True
ret... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 546,538 | 546,537 | u201986772 | python |
p02760 | l = [list(map(int,input().split())) for i in range(3)]
N = int(input())
q = [int(input()) for i in range(N)]
print(q)
for i in range(3):
for j in range(3):
for k in range(N):
if l[i][j] == q[k]:
l[i][j] = 0
if l[0][0] == 0 and l[0][1] == 0 and l[0][2] == 0:
print('Yes')
... | l = [list(map(int,input().split())) for i in range(3)]
N = int(input())
q = [int(input()) for i in range(N)]
for i in range(3):
for j in range(3):
for k in range(N):
if l[i][j] == q[k]:
l[i][j] = 0
if l[0][0] == 0 and l[0][1] == 0 and l[0][2] == 0:
print('Yes')
exit(... | [
"call.remove"
] | 546,539 | 546,540 | u773440446 | python |
p02760 | l = [map(int,input().split()) for i in range(3)]
N = int(input())
q = [int(input()) for i in range(N)]
for i in range(3):
for j in range(3):
for k in range(N):
if l[i][j] == q[k]:
l[i][j] == 0
if l[0][0] == 0 and l[0][1] == 0 and l[0][2] == 0:
print('Yes')
exit()
... | l = [list(map(int,input().split())) for i in range(3)]
N = int(input())
q = [int(input()) for i in range(N)]
for i in range(3):
for j in range(3):
for k in range(N):
if l[i][j] == q[k]:
l[i][j] = 0
if l[0][0] == 0 and l[0][1] == 0 and l[0][2] == 0:
print('Yes')
exit(... | [
"call.add",
"call.arguments.change",
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 546,541 | 546,540 | u773440446 | python |
p02760 | a = [list(map(int, input().split())) 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:
a[i][j] = 0
lines = [[a[0][0], a[0][1], a[0][2]],
[a[1][0], a[1][1], a[1][2]],
[a[2][0], a[2... | a = [list(map(int, input().split())) 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:
a[i][j] = 0
lines = [[a[0][0], a[0][1], a[0][2]],
[a[1][0], a[1][1], a[1][2]],
[a[2][0], a[2... | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 546,563 | 546,564 | u086056891 | python |
p02760 | import sys
an = []
for i in range(3):
a = [int(num) for num in input().split()]
an.append(a)
n = int(input())
number = []
for i in range(n):
number.append(int(input()))
for b in number:
for i in range(3):
for j in range(3):
if b == an[i][j]:
an[i][j] = 0
for i in range(3):
if an[i][0]... | import sys
an = []
for i in range(3):
a = [int(num) for num in input().split()]
an.append(a)
n = int(input())
number = []
for i in range(n):
number.append(int(input()))
for b in number:
for i in range(3):
for j in range(3):
if b == an[i][j]:
an[i][j] = 0
for i in range(3):
if an[i][0]... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,570 | 546,571 | u765590009 | python |
p02760 | import sys
an = []
for i in range(3):
a = [int(num) for num in input().split()]
an.append(a)
n = int(input())
number = []
for i in range(n):
number.append(int(input()))
for b in number:
for i in range(3):
for j in range(3):
if b == an[i][j]:
an[i][j] = 0
for i in range(3):
if an[i][0]... | import sys
an = []
for i in range(3):
a = [int(num) for num in input().split()]
an.append(a)
n = int(input())
number = []
for i in range(n):
number.append(int(input()))
for b in number:
for i in range(3):
for j in range(3):
if b == an[i][j]:
an[i][j] = 0
for i in range(3):
if an[i][0]... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,572 | 546,571 | u765590009 | python |
p02760 | K=[['x','x','x'],
['x','x','x'],
['x','x','x']]
a,b,c=map(int,input().split())
d,e,f=map(int,input().split())
g,h,j=map(int,input().split())
N=int(input())
B=[]
for _ in range(N):
B.append(int(input()))
for i in range(N):
if B[i]==a:
K[0][0]='o'
if B[i]==b:
K[0][1]='o'
if B[i]==c:
K[0][2]='... | K=[['x','x','x'],
['x','x','x'],
['x','x','x']]
a,b,c=map(int,input().split())
d,e,f=map(int,input().split())
g,h,j=map(int,input().split())
N=int(input())
B=[]
for _ in range(N):
B.append(int(input()))
for i in range(N):
if B[i]==a:
K[0][0]='o'
if B[i]==b:
K[0][1]='o'
if B[i]==c:
K[0][2]='... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,594 | 546,595 | u640922335 | python |
p02760 | import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for i in range(n):
for j in range(3):
for k in range(3):
if a[j][k] == b[i]:
a[j][k] = 0
flag = Fal... | import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline
a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
for i in range(n):
for j in range(3):
for k in range(3):
if a[j][k] == b[i]:
a[j][k] = 0
flag = Fal... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,598 | 546,599 | u651235280 | python |
p02760 | def resolve():
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
punch = [[False for _ in range(3)] for _ in range(3)]
for i in range(3):
for j in range(3):
if A[i][j] in B:
punch[i][j] = True
ans = "... | def resolve():
A = [list(map(int, input().split())) for _ in range(3)]
N = int(input())
B = [int(input()) for _ in range(N)]
punch = [[False for _ in range(3)] for _ in range(3)]
for i in range(3):
for j in range(3):
if A[i][j] in B:
punch[i][j] = True
ans = "... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,610 | 546,611 | u761062383 | python |
p02760 | """abc157_b"""
A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
B = [int(input()) for i in range(N)]
for a in A:
for i in range(3):
if a[i] in B:
a[i] = 0
ANS = "No"
for a in A:
if sum(a) == 0:
ANS = "Yes"
break
verti = 0
for i in range(3):
... | """abc157_b"""
A = [list(map(int, input().split())) for i in range(3)]
N = int(input())
B = [int(input()) for i in range(N)]
for a in A:
for i in range(3):
if a[i] in B:
a[i] = 0
ANS = "No"
for a in A:
if sum(a) == 0:
ANS = "Yes"
break
verti = 0
for i in range(3):
... | [] | 546,612 | 546,613 | u893962649 | python |
p02760 | def main():
a = [[int(i) for i in input().split()] for _ in range(3)]
n = int(input())
ans = 'No'
for i in range(n):
b = int(input())
for index, j in enumerate(a):
if j[0] == b:
a[index][0] = 0
elif j[1] == b:
a[index][1] = 0
... | def main():
a = [[int(i) for i in input().split()] for _ in range(3)]
n = int(input())
ans = 'No'
for i in range(n):
b = int(input())
for index, j in enumerate(a):
if j[0] == b:
a[index][0] = 0
elif j[1] == b:
a[index][1] = 0
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 546,618 | 546,619 | u173644182 | 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):
for j in range(3):
for k in range(n):
if A[i][j]==B[k]:
A[i][j]=0
ans="No"
for i in range(3):
if A[i][0]+A[i][1]+A[i][2]==0:
ans... | 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):
for j in range(3):
for k in range(n):
if A[i][j]==B[k]:
A[i][j]=0
ans="No"
for i in range(3):
if A[i][0]+A[i][1]+A[i][2]==0:
ans... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,626 | 546,627 | u891202624 | python |
p02760 | A = [[0 for _ in range(3)] for _ in range(3)]
B = [[0 for _ in range(3)] for _ in range(3)]
for i in range(3):
tmp = input().split()
for j in range(3):
A[i][j] = int(tmp[j])
N = int(input())
for n in range(N):
b = int(input())
flag = False
for i in range(3):
for j in range(3):
... | A = [[0 for _ in range(3)] for _ in range(3)]
B = [[0 for _ in range(3)] for _ in range(3)]
for i in range(3):
tmp = input().split()
for j in range(3):
A[i][j] = int(tmp[j])
N = int(input())
for n in range(N):
b = int(input())
flag = False
for i in range(3):
for j in range(3):
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 546,642 | 546,643 | u834224054 | python |
p02760 | a1,a2,a3,_,*b = [i.split() for i in open(0)]
bingo = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [2, 5, 8], [0, 3, 6], [1, 4, 7], [0, 4, 8], [2, 4, 6]]
s = ["" if i in b else i for i in a1 + a2 + a3]
for i,j,k in bingo:
if {s[i],s[j],s[k]} == {''}:
print('Yes')
exit()
print('No') | a1,a2,a3,_,*b = [i.split() for i in open(0)]
bingo = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [2, 5, 8], [0, 3, 6], [1, 4, 7], [0, 4, 8], [2, 4, 6]]
s = ["" if i in sum(b,[]) else i for i in a1 + a2 + a3]
for i,j,k in bingo:
if {s[i],s[j],s[k]} == {''}:
print('Yes')
exit()
print('No') | [
"call.add",
"call.arguments.add"
] | 546,644 | 546,645 | u094999522 | python |
p02760 | x = [list(map(int, input().split())) for i in range(3)]
rows = int(input())
y = [int(input()) for i in range(rows)]
xx = sum(x, [])
tate1 = xx[0:9:3]
tate2 = xx[1:9:3]
tate3 = xx[2:9:3]
yoko1 = xx[0:3]
yoko2 = xx[3:6]
yoko3 = xx[6:9]
nana1 = xx[0:9:4]
nana2 = xx[2:9:2]
if rows >= 3 and (set(tate1) <= set(y) or set(t... | x = [list(map(int, input().split())) for i in range(3)]
rows = int(input())
y = [int(input()) for i in range(rows)]
xx = sum(x, [])
tate1 = xx[0:9:3]
tate2 = xx[1:9:3]
tate3 = xx[2:9:3]
yoko1 = xx[0:3]
yoko2 = xx[3:6]
yoko3 = xx[6:9]
nana1 = xx[0:9:4]
nana2 = xx[2:7:2]
if rows >= 3 and (set(tate1) <= set(y) or set(t... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change"
] | 546,648 | 546,649 | u465652095 | python |
p02760 | x = [list(map(int, input().split())) for i in range(3)]
rows = int(input())
y = [int(input()) for i in range(rows)]
xx = sum(x, [])
tate1 = xx[0:9:3]
tate2 = xx[1:9:3]
tate3 = xx[2:9:3]
yoko1 = xx[0:3]
yoko2 = xx[3:6]
yoko3 = xx[6:9]
nana1 = xx[0:9:4]
nana2 = xx[2:9:2]
if rows >= 3 and set(tate1) <= set(y) or set(ta... | x = [list(map(int, input().split())) for i in range(3)]
rows = int(input())
y = [int(input()) for i in range(rows)]
xx = sum(x, [])
tate1 = xx[0:9:3]
tate2 = xx[1:9:3]
tate3 = xx[2:9:3]
yoko1 = xx[0:3]
yoko2 = xx[3:6]
yoko3 = xx[6:9]
nana1 = xx[0:9:4]
nana2 = xx[2:7:2]
if rows >= 3 and (set(tate1) <= set(y) or set(t... | [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,650 | 546,649 | u465652095 | python |
p02760 | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
s = list(map(int, [input() for i in range(n)]))
l = [
[0, 0, 0]
, [0, 0, 0]
, [0, 0, 0]
]
for i in range(0, 3):
for j in range(0, n):
if a1[i] == s[j]:
l[0][i] = i+1
for i in... | a1 = list(map(int, input().split()))
a2 = list(map(int, input().split()))
a3 = list(map(int, input().split()))
n = int(input())
s = list(map(int, [input() for i in range(n)]))
l = [
[0, 0, 0]
, [0, 0, 0]
, [0, 0, 0]
]
for i in range(0, 3):
for j in range(0, n):
if a1[i] == s[j]:
l[0][i] = i+1
for i in... | [
"assignment.add"
] | 546,661 | 546,662 | u085530099 | python |
p02760 | a = list(list(map(int,input().split())) for _ in range(3))
n = int(input())
b = set(int(input() for i in range(n)))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i]... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = set(int(input()) for i in range(n))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i] in... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 546,674 | 546,675 | u435084726 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = set(int(input() for _ in range(n)))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i] in... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = set(int(input()) for i in range(n))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i] in... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 546,676 | 546,675 | u435084726 | python |
p02760 | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = set(int(input() for i in range(n)))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i] in... | a = [list(map(int, input().split())) for i in range(3)]
n = int(input())
b = set(int(input()) for i in range(n))
def check():
for i in range(3):
if all(a[i][j] in b for j in range(3)):
return True
if all(a[j][i] in b for j in range(3)):
return True
return all(a[i][i] in... | [
"call.arguments.change"
] | 546,677 | 546,675 | u435084726 | python |
p02760 | def B():
a = [list(map(int,input().split())) for i in range(3)]
n = int(input())
b = [list(int(input())) for i in range(n)]
for bingo in b:
for i in range(3):
for j in range(3):
if a[i][j] == bingo:
a[i][j] = 0
if (a[0][0] == a[1][1] == a[2][2]... | def B():
a = [list(map(int,input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
for bingo in b:
for i in range(3):
for j in range(3):
if a[i][j] == bingo:
a[i][j] = 0
if (a[0][0] == a[1][1] == a[2][2] == 0)... | [
"call.remove",
"call.arguments.change"
] | 546,678 | 546,679 | u985041094 | python |
p02760 | def B():
a = [list(map(int,input().split())) for i in range(3)]
n = int(input())
b = [list(int(input())) for i in range(n)]
for bingo in b:
for i in range(3):
for j in range(3):
if a[i][j] == bingo:
a[i][j] = 0
if (a[0][0] == a[1][1] == a[2][2]... | def B():
a = [list(map(int,input().split())) for i in range(3)]
n = int(input())
b = [int(input()) for i in range(n)]
for bingo in b:
for i in range(3):
for j in range(3):
if a[i][j] == bingo:
a[i][j] = 0
if (a[0][0] == a[1][1] == a[2][2] == 0)... | [
"call.remove",
"call.arguments.change",
"call.add"
] | 546,680 | 546,679 | u985041094 | python |
p02760 | def B():
mat = [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 bingo in (int(input()) for _ in range(N)):
for i in range(3):
for j in range(3):
if mat[i][j] == bingo:
... | def B():
mat = [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 bingo in (int(input()) for _ in range(n)):
for i in range(3):
for j in range(3):
if mat[i][j] == bingo:
... | [
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 546,681 | 546,682 | u985041094 | python |
p02760 | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, i = map(int, input().split())
L = []
L.append({a, b, c})
L.append({d, e, f})
L.append({g, h, i})
L.append({a, d, g})
L.append({b, e, h})
L.append({c, f, i})
L.append({a, e, i})
L.append({c, f, g})
N = int(input())
B = {int(input()) for i in r... | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, i = map(int, input().split())
L = []
L.append({a, b, c})
L.append({d, e, f})
L.append({g, h, i})
L.append({a, d, g})
L.append({b, e, h})
L.append({c, f, i})
L.append({a, e, i})
L.append({c, e, g})
N = int(input())
B = {int(input()) for i in r... | [
"identifier.change",
"call.arguments.change"
] | 546,687 | 546,688 | u536034761 | python |
p02760 | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, i = map(int, input().split())
L = []
L.append({a, b, c})
L.append({d, e, f})
L.append({g, h, i})
L.append({a, d, g})
L.append({b, e, h})
L.append({c, f, i})
L.append({a, e, i})
L.append({c, f, i})
N = int(input())
B = {int(input()) for i in r... | a, b, c = map(int, input().split())
d, e, f = map(int, input().split())
g, h, i = map(int, input().split())
L = []
L.append({a, b, c})
L.append({d, e, f})
L.append({g, h, i})
L.append({a, d, g})
L.append({b, e, h})
L.append({c, f, i})
L.append({a, e, i})
L.append({c, e, g})
N = int(input())
B = {int(input()) for i in r... | [
"identifier.change",
"call.arguments.change"
] | 546,689 | 546,688 | u536034761 | 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):
A[j] = ["$" if num == b else num for num in A[j]]
if ["$"]*3 in A:
print("Yes")
elif any( [A[i][j] for j in range(3)] == ["$"]*3 for i in range(3) ):
print("Yes")
eli... | 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):
A[j] = ["$" if num == b else num for num in A[j]]
if ["$"]*3 in A:
print("Yes")
elif any( [A[j][i] for j in range(3)] == ["$"]*3 for i in range(3) ):
print("Yes")
eli... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,692 | 546,693 | u926412290 | python |
p02760 | import math
def main():
a = list(map(int, input().split()))
a.extend(list(map(int, input().split())))
a.extend(list(map(int, input().split())))
n = int(input())
for _ in range(n):
x = int(input())
a = [True if i == x else i for i in a]
a = [False if i != True else True for i in a... | import math
def main():
a = list(map(int, input().split()))
a.extend(list(map(int, input().split())))
a.extend(list(map(int, input().split())))
n = int(input())
for _ in range(n):
x = int(input())
a = [True if i == x else i for i in a]
a = [False if i != True else True for i in a... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,698 | 546,699 | u157232135 | 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(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
import numpy as np
arr = np.array(a)
answer = "No"
if 0 in arr.sum(axis=0) or 0 in arr.sum(axis=0):
answer = ... | 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(3):
for j in range(3):
if a[i][j] in b:
a[i][j] = 0
import numpy as np
arr = np.array(a)
answer = "No"
if (0 in arr.sum(axis=0)) or (0 in arr.sum(axis=1)):
answe... | [
"control_flow.branch.if.condition.change"
] | 546,710 | 546,711 | u443872523 | python |
p02760 | import numpy as np
A_1 = list(map(int, input().split()))
A_2 = list(map(int, input().split()))
A_3 = list(map(int, input().split()))
bingo = np.array([A_1, A_2, A_3])
N = int(input())
for i in range(N):
bingo[bingo == int(input())] = 0
def check():
for i in range(3):
if bingo[i][0] == 0 and bingo[i][1... | import numpy as np
A_1 = list(map(int, input().split()))
A_2 = list(map(int, input().split()))
A_3 = list(map(int, input().split()))
bingo = np.array([A_1, A_2, A_3])
N = int(input())
for i in range(N):
bingo[bingo == int(input())] = 0
def check():
for i in range(3):
if bingo[i][0] == 0 and bingo[i][1... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,712 | 546,713 | u031157253 | python |
p02760 | for _ in range(3):
A += list(map(int,input().split()))
N = int(input())
B = [int(input()) for _ in range(N)]
C = [0]*9
for i in B:
if i in A:
x = A.index(i)
C[x] = 1
if C[0]*C[1]*C[2] == 1 or C[3]*C[4]*C[5]==1 or C[6]*C[7]*C[8] ==1 or C[0]*C[3]*C[6] ==1 or C[1]*C[4]*C[7]==1 or C[2]*C[5]*C[8] ==1 or C[0]*C[4... | A = []
for _ in range(3):
A += list(map(int,input().split()))
N = int(input())
B = [int(input()) for _ in range(N)]
C = [0]*9
for i in B:
if i in A:
x = A.index(i)
C[x] = 1
if C[0]*C[1]*C[2] == 1 or C[3]*C[4]*C[5]==1 or C[6]*C[7]*C[8] ==1 or C[0]*C[3]*C[6] ==1 or C[1]*C[4]*C[7]==1 or C[2]*C[5]*C[8] ==1 or C... | [
"assignment.add"
] | 546,735 | 546,736 | u991134049 | python |
p02760 | numbers = []
numbers.extend(list(map(int, input().split(' '))))
numbers.extend(list(map(int, input().split(' '))))
numbers.extend(list(map(int, input().split(' '))))
N = int(input())
answers = set()
for _ in range(N):
answers.add(int(input()))
results = [False] * 9
for i in range(len(numbers)):
if numbers[i] ... | numbers = []
numbers.extend(list(map(int, input().split(' '))))
numbers.extend(list(map(int, input().split(' '))))
numbers.extend(list(map(int, input().split(' '))))
N = int(input())
answers = set()
for _ in range(N):
answers.add(int(input()))
results = [False] * 9
for i in range(len(numbers)):
if numbers[i] ... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,740 | 546,741 | u606878291 | python |
p02760 | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input() for _ in range(n))]
flag = False
for i in range(3):
if a[i][0] in b and a[i][1] in b and a[i][2] in b:
flag = True
break
if a[0][i] in b and a[1][i] in b and a[2][i] in b:
flag = True
break... | a = [list(map(int, input().split())) for _ in range(3)]
n = int(input())
b = [int(input()) for _ in range(n)]
flag = False
for i in range(3):
if a[i][0] in b and a[i][1] in b and a[i][2] in b:
flag = True
break
if a[0][i] in b and a[1][i] in b and a[2][i] in b:
flag = True
break... | [
"call.arguments.change"
] | 546,749 | 546,750 | u222207357 | python |
p02760 | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] = 0
at = a.transpose()
flag = True
for i in range(3):
if ... | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] = 0
at = a.transpose()
flag = False
for i in range(3):
if... | [
"misc.opposites",
"assignment.value.change"
] | 546,751 | 546,752 | u222207357 | python |
p02760 | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] = 0
at = a.transpose()
flag = True
for i in range(3):
if ... | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] = 0
at = a.transpose()
flag = False
for i in range(3):
if... | [
"misc.opposites",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 546,753 | 546,752 | u222207357 | python |
p02760 | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] == 0
at = a.transpose()
flag = True
for i in range(3):
if... | import numpy as np
a = [list(map(int, input().split())) for _ in range(3)]
a = np.array(a)
n = int(input())
for _ in range(n):
b = int(input())
for j in range(3):
for i in range(3):
if a[j][i] == b:
a[j][i] = 0
at = a.transpose()
flag = False
for i in range(3):
if... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo",
"misc.opposites",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 546,755 | 546,752 | u222207357 | python |
p02760 | a = []
for i in range(3):
a.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
b = int(input())
for j in a:
if b in j:
a[a.index(j)][j.index(b)] = 0
ans = 0
for i in range(3):
if a[0][i] == a[1][i] == a[2][i] == 0:
ans = 1
elif a[i][0] == a[i][1... | a = []
for i in range(3):
a.append(list(map(int, input().split())))
n = int(input())
for i in range(n):
b = int(input())
for j in a:
if b in j:
a[a.index(j)][j.index(b)] = 0
ans = 0
for i in range(3):
if a[0][i] == a[1][i] == a[2][i] == 0:
ans = 1
elif a[i][0] == a[i][1... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,756 | 546,757 | u551437236 | python |
p02760 | import numpy as np
import sys
a_list = np.array([list(map(int, input().split())) for _ in range(3)])
n = int(input())
for _ in range(n):
b = int(input())
for a in a_list:
for idx, aa in enumerate(a):
if aa == b:
a[idx] = 0
# 縦横対角
for i in range(3):
if list(a_list[... | import numpy as np
import sys
a_list = np.array([list(map(int, input().split())) for _ in range(3)])
n = int(input())
for _ in range(n):
b = int(input())
for a in a_list:
for idx, aa in enumerate(a):
if aa == b:
a[idx] = 0
# 縦横対角
for i in range(3):
if list(a_list[... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,776 | 546,777 | u527379148 | python |
p02760 | import sys
input = sys.stdin.readline
a = [list(map(int, input().split())) for _ in range(3)]
marked = [[False, False, False] for _ in range(3)]
Q = int(input())
for i in range(Q):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
marked[j][k] = True
... | import sys
input = sys.stdin.readline
a = [list(map(int, input().split())) for _ in range(3)]
marked = [[False, False, False] for _ in range(3)]
Q = int(input())
for i in range(Q):
b = int(input())
for j in range(3):
for k in range(3):
if a[j][k] == b:
marked[j][k] = True
... | [
"call.remove"
] | 546,782 | 546,783 | u572138437 | python |
p02760 | f = list(map(int, input().split()))
s = list(map(int, input().split()))
t = list(map(int, input().split()))
n = int(input())
k = []
for i in range(n):
k.append(int(input()))
lis = []
lis.append(f)
lis.append(s)
lis.append(t)
ans = 0
for i in lis:
c =0
for n in range(len(i)):
if i[n] in k:
... | f = list(map(int, input().split()))
s = list(map(int, input().split()))
t = list(map(int, input().split()))
n = int(input())
k = []
for i in range(n):
k.append(int(input()))
lis = []
lis.append(f)
lis.append(s)
lis.append(t)
ans = 0
for i in lis:
c =0
for n in range(len(i)):
if i[n] in k:
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,787 | 546,788 | u936285815 | python |
p02760 |
f = list(map(int, input().split()))
s = list(map(int, input().split()))
t = list(map(int, input().split()))
n = int(input())
k = []
for i in range(n):
k.append(int(input()))
lis = []
lis.append(f)
lis.append(s)
lis.append(t)
ans = 0
for i in lis:
c =0
for n in range(len(i)):
if i[n] in k:
... | f = list(map(int, input().split()))
s = list(map(int, input().split()))
t = list(map(int, input().split()))
n = int(input())
k = []
for i in range(n):
k.append(int(input()))
lis = []
lis.append(f)
lis.append(s)
lis.append(t)
ans = 0
for i in lis:
c =0
for n in range(len(i)):
if i[n] in k:
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 546,789 | 546,788 | u936285815 | python |
p02760 | A = list()
for i in range(3):
A += 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] = 0
for i in range(3):
if A[3*i:3*i+3] == [0, 0, 0]:
print('Yes')
exit()
elif [A[i], A[i+3], A[i+6]] == [0, 0, 0]:
print(... | A = list()
for i in range(3):
A += 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] = 0
for i in range(3):
if A[3*i:3*i+3] == [0, 0, 0]:
print('Yes')
exit()
elif [A[i], A[i+3], A[i+6]] == [0, 0, 0]:
print(... | [
"call.remove"
] | 546,790 | 546,791 | u074687136 | python |
p02760 | A = [list(map(int, input().split())) 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:
A[i][j] == 0
bingo = False
for row in A:
if sum(row) == 0:
bingo = True
for col in zip(*A):
if sum(... | A = [list(map(int, input().split())) 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:
A[i][j] = 0
bingo = False
for row in A:
if sum(row) == 0:
bingo = True
for col in zip(*A):
if sum(c... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 546,792 | 546,793 | u467307100 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.