problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02760
u221264296
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['t=[]\nfor i in range(3):\n t.append([int(i) for i in input().split()])\nn = int(input())\nlst = []\nfor i in range(n):lst+=[int(input())]\ndef ligne(i):\n for j in range(3):\n if not t[i][j] in lst:\n return False\n return True\ndef col(j):\n for i in range(3):\n if not t[i][j] in...
['Runtime Error', 'Accepted']
['s342582367', 's615855239']
[2940.0, 3064.0]
[17.0, 17.0]
[730, 731]
p02760
u222207357
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a = [list(map(int, input().split())) for _ in range(3)]\nn = int(input())\nb = [int(input() for _ in range(n))]\n\nflag = False\nfor i in range(3):\n if a[i][0] in b and a[i][1] in b and a[i][2] in b:\n flag = True\n break\n if a[0][i] in b and a[1][i] in b and a[2][i] in b:\n flag = True\n...
['Runtime Error', 'Accepted']
['s613390328', 's477297423']
[3064.0, 3064.0]
[18.0, 18.0]
[490, 490]
p02760
u223574877
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['loopin=input()\n\nbingolist = []\n\n\n\nA11,A12,A13,A21,A22,A23,A31,A32,A33=0,0,0,0,0,0,0,0,0\n\n\nfor i in range(int(loopin)):\n\tbingo = input()\n\tif bingo==a:\n\t\tA11=1\n\telif bingo==b:\n\t\tA12=1\t\n\telif bingo==c:\n\t\tA13=1\t\n\telif bingo==d:\n\t\tA21=1\t\n\telif bingo==e:\n\t\tA22=1\t\n\telif bingo==f:\n\...
['Runtime Error', 'Accepted']
['s732810826', 's726655623']
[3064.0, 3064.0]
[17.0, 18.0]
[561, 720]
p02760
u223904637
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a=[]\nfor i in range(3):\n a.append(list(map(int,input().split())))\nb=[[0 for i in range(3)] for j in range(3)]\nn=int(input())\nfor i in range(n):\n p=int(input())\n for j in range(3):\n for k in range(3):\n if p==a[i][j]:\n b[i][j]=1\nfor i in range(3):\n x=0\n y=0\n...
['Runtime Error', 'Accepted']
['s896843350', 's537128298']
[3064.0, 3064.0]
[17.0, 18.0]
[597, 598]
p02760
u224554402
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = input()\nb = input()\nc = input()\nlist_ans =(a,b,c)\nN = int(input())\n\n\nfor i in range(N):\n bingo = input()\n bingo_list=[]\n bingo_list.append(bingo)\n \n \n \n\ndef bingo_row(p,q):\n \n if p in q:\n return True\n else:\n return False\n\ndef bingo_column(p,q,r,s):\n ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s052232714', 's133069069', 's256851698', 's588270483']
[3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 18.0, 18.0, 17.0]
[1173, 1264, 1417, 1391]
p02760
u225020286
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a=[]\nfor i in range (2):\n for j in range(2):\n a.append(int(input()))\nN=int(input())\nfor i in range(N):\n b[i]=int(input())\n \nfor i in range(2):\n for j in range(2):\n for k in range(N):\n if a[i][j]==b[k]:\n a[i][j]=1\n else:\n a[i][j]=0\n \nif a[0][0]=1 and a[0][1]=1 a...
['Runtime Error', 'Accepted']
['s569318346', 's002265584']
[2940.0, 3064.0]
[17.0, 18.0]
[764, 758]
p02760
u227082700
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a=[[int(input())for _ in range(3)]for _ in range(3)]\nn=int(input())\nb=[int(input())for _ in range(n)]\nfor i in b:\n for j in range(3):\n for k in range(3):\n if i==a[j][k]:a[j][k]=0\nans="No"\nfor i in range(3):\n if a[i][0]==a[i][1]==a[i][2]:ans="Yes"\n if a[0][i]==a[1][i]==a[2][i]:ans="Yes"\nif a[0][0...
['Runtime Error', 'Accepted']
['s747049113', 's019266967']
[3064.0, 3064.0]
[18.0, 17.0]
[386, 387]
p02760
u228636605
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A = []\nfor i in range(3):\n array = list(map(int, input().strip().split()))\n A.append(array)\n\n# A = [input().split() for l in range(3)] \n\nN = int(input())\nb = []\nflag = 0\nfor i in range(N):\n b.append(int(input()))\n\nprint(type(int(A[0][0])))\nprint(type(b[0]))\n\nif A[0][0] == b[0]:\n print("Ye...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s470719815', 's675588591', 's759923163']
[3188.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0]
[893, 902, 858]
p02760
u232599070
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a11, a12, a13 = map(int, input().split())\na21, a22, a23 = map(int, input().split())\na31, a32, a33 = map(int, input().split())\n\nN = int(input())\n\nbingo = [a11, a12, a13, a21, a22, a23, a31, a32, a33]\n\nnum = []\nfor _ in range(N):\n num.append(_)\n\nfor _ in range(len(bingo)):\n if bingo[_] in num:\n bingo...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s435868047', 's776154384', 's238361045']
[3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0]
[601, 484, 847]
p02760
u232873434
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = [list(map(int, input().split())) for i in range(0,3)]\nN = int(input())\nb_list =list([int(input()) for i in range(0,N)])\ncount = 0\nfor i in range(0,3):\n for j in range(0,3):\n if A[i][j] in b_list:\n count = count + (i+1)*(j+1)\nif count % 3 == 0:\n print('Yes')\nelse:\n print('No')...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s001078851', 's556235035', 's571091237', 's580546102']
[3064.0, 12504.0, 18672.0, 12504.0]
[17.0, 150.0, 273.0, 153.0]
[307, 538, 546, 543]
p02760
u236823931
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['60 88 34\n92 41 43\n65 73 48\n10\n60\n43\n88\n11\n48\n73\n65\n41\n92\n34', "if __name__ == '__main__':\n a = [list(map(int, input().split())) for e in range(3)]\n n = int(input())\n b = [int(input()) for _ in range(n)]\n c = 'No'\n for i in range(len(a)):\n for j in range(len(a)):\n i...
['Runtime Error', 'Accepted']
['s559591697', 's652540761']
[2940.0, 3064.0]
[17.0, 17.0]
[59, 608]
p02760
u238940874
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a=[list(map(int,input().split())) for i in range(3)]\nn=int(input())\nb=[]\nfor i in range(n):\n b.append(int(input()))\nfor j in range(3):\n for k in range(3):\n if a[j][k] == b:\n a[j][k] = 0\nans='No'\nfor i in range(3):\n if a[i][0]==a[i][1]==a[i][2]==0:\n ans='Yes'\n if a[0][...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s631203810', 's724655934', 's028652187']
[3064.0, 3064.0, 3064.0]
[17.0, 20.0, 18.0]
[452, 431, 383]
p02760
u239653493
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a,b,c = map(int, input().split())\nd,e,f = map(int, input().split())\ng,h,i = map(int, input().split())\nn=int(input())\nA = []\nfor i in range(n):\n A.append(int(input()))\nif ((a in A) and (b in A) and (c in A)) or ( d in A and e in A and f in A) or(g in A and h in A and i in A) or (a in A and d in A and g in...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s434775761', 's545561132', 's676616378', 's691862005', 's972609833', 's350730156']
[3064.0, 3064.0, 3064.0, 3064.0, 2940.0, 3064.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[491, 523, 614, 527, 543, 615]
p02760
u242890210
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["list1 = list(map(int, input().split()))\nlist2 = list(map(int, input().split()))\nlist3 = list(map(int, input().split()))\nn = int(input())\nnum_list = []\nfor i in range(n):\n b = int(input())\n num_list.append(b)\nfor num in num_list:\n if num in list1:\n x = list1.index(num)\n list1.pop(x)\n...
['Wrong Answer', 'Accepted']
['s087503671', 's423056404']
[3188.0, 3064.0]
[18.0, 17.0]
[1149, 1111]
p02760
u246895837
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["bingo_l = []\nb_flg = 0\n \nfor _ in range(3):\n bingo_l.append(list(map(int, input().split())))\n\nN = int(input())\n\nkekka_l = [[0, 0, 0],[0, 0, 0],[0, 0, 0]]\n\nfor _ in range(N):\n b = int(input())\n for i in range(3):\n for j in range(3):\n if b == bingo_l[i][j]:\n ...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s135874014', 's279446410', 's865200156', 's042770393']
[3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 19.0, 18.0, 18.0]
[764, 756, 764, 659]
p02760
u247211039
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = [list(map(int, input().split())) for _ in range(3)]\nN=int(input())\nb = [input() for _ in range(N)]\n\n\ncnt=0\n\nfor i in range(N):\n for j in range(3):\n for k in range(3):\n if b[i] == a[j][k]:\n a[j][k] =1000\n if sum(a[j]) ==3000 or a[0][k]+a[1][k]+a[2][k]=...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s175935735', 's591184400', 's035048976']
[9204.0, 9200.0, 9208.0]
[31.0, 30.0, 26.0]
[438, 430, 443]
p02760
u247680229
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import numpy as np\nN_1=[46, 70, 98]\nN_2=[5, 39, 99]\nN_3=[34, 84, 8]\n\nN=int(7)\na=[75,12,22,8,99,34,10]\n\nn=np.array([N_1,N_2,N_3])\n\nfor a_n in a:\n if a_n in n:\n n[n==a_n]=0\n else:\n pass\ni=0\n \nif np.all(n[0:,0]==0)==True:\n i=+1\n \nelif np.all(n[0:,1]==0)==True:\n i+=1\n...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s167023202', 's274576989', 's632441113', 's634496368', 's836163478', 's207417039']
[14548.0, 3188.0, 2940.0, 12472.0, 12692.0, 3188.0]
[154.0, 18.0, 18.0, 148.0, 158.0, 18.0]
[656, 761, 526, 704, 676, 778]
p02760
u250362126
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import itertools\nimport sys\n\n[a,b,c] = [int(x) for x in input().split()]\n[d,e,f] = [int(x) for x in input().split()]\n[g,h,i] = [int(x) for x in input().split()]\nN = int(input())\nnum_list = []\nfor i in range(N):\n n = int(input())\n num_list.append(n)\nset_list = [{a,b,c},{d,e,f},{g,h,i},{a,d,g},{b,e,h},{c,f...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s165641329', 's360362101', 's752193190', 's823324140', 's939997733', 's922004228']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0, 18.0, 18.0, 17.0]
[493, 450, 446, 485, 439, 500]
p02760
u250828304
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import sys\nN = 3\n\n\nA = []\nfor i in range(N):\n array = list(map(int, input().strip().split()))\n A.append(array)\n\nA_t = [list(x) for x in zip(*A)]\nA_n = [[A[0][0],A[1][1],A[2][2]],[A[0][2],A[1][1],A[2][0]]]\nN = int(input())\nB=[]\ncnt = [0]*3\nfor i in range(N):\n B.append(int(input()))\n \ncnt[0...
['Wrong Answer', 'Accepted']
['s899943720', 's756198212']
[3064.0, 3064.0]
[17.0, 18.0]
[774, 764]
p02760
u252210202
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A_1 = list(map(int, input().split()))\nA_2 = list(map(int, input().split()))\nA_3 = list(map(int, input().split()))\nN = int(input())\nb = [(int(input())) for _ in range(N)]\nfor i in range(3):\n for j in range(N):\n if A_1[i] == b[j]:\n A_1[i] = "a"\n elif A_2[i] == b[j]:\n A_2...
['Runtime Error', 'Runtime Error', 'Accepted']
['s127871899', 's865567357', 's876350142']
[3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0]
[814, 838, 876]
p02760
u253799217
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["R = 3\nr = [ list(map(int, input().split(' '))) for i in range(R) ]\n\ndef check():\n for y in range(R):\n f = True\n for x in range(R):\n if r[y][x] != 0:\n f = False\n break\n if f:\n return True\n \n for x in range(R):\n f = True\n for y in range(R):\n if r[y][x] != 0:...
['Runtime Error', 'Runtime Error', 'Accepted']
['s461811958', 's869471863', 's330994656']
[2940.0, 3188.0, 3064.0]
[17.0, 19.0, 17.0]
[747, 696, 750]
p02760
u254221913
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A1 = list(map(int,input().split()))\nA2 = list(map(int,input().split()))\nA3 = list(map(int,input().split()))\nN = int(input())\nlistb = [input() for i in range(N)]\n\nfor item in listb:\n for i in range(3):\n if A1[i] == item:\n A1[i] = 0\n for j in range(3):\n if A2[j] == item:\n ...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s842407052', 's861035346', 's892264134', 's060678089']
[3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0, 17.0]
[673, 662, 663, 668]
p02760
u255382385
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = []\nfor _ in range(3):\n a.append(list(map(int, input().split())))\nn = int(input())\nb = []\nfor _ in range(n):\n b.append(int(input()))\n\ncheck = [[False] * 3 for _ in range(3)]\n\nfor b_one in b:\n for i in range(3):\n for j in range(3):\n if a[i][j] == b_one:\n check...
['Runtime Error', 'Accepted']
['s157624921', 's652672018']
[3064.0, 3064.0]
[17.0, 18.0]
[939, 1117]
p02760
u260887519
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["lines = [input().split() for i in range(3)]\n \nnum = int(input())\nbs = []\nfor i in range(num):\n bs.append(input())\n \nhits = []\nfor i in bs:\n for row_index in range(len(lines)):\n for col_index in range(len(line)):\n if lines[row_index][col_index] == i:\n hits.append((row_index,col_index))\nro...
['Runtime Error', 'Runtime Error', 'Accepted']
['s315419112', 's372759957', 's061626503']
[3064.0, 3064.0, 3192.0]
[18.0, 17.0, 18.0]
[663, 655, 674]
p02760
u264304509
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A=sum([list(map(int,input().split())) for _ in range(3)],[])\nN=int(input())\nb=[int(input()) for _ in range(N)]\nf=0\nfor i in range(9):if A[i]in b:f|=1<<i\nprint('Yes'if sum(f&v==v for v in[7,23,56,84,146,273,292,448])else'No')", "A = [list(map(int, input().split())) for _ in range(3)]\nN = int(input())\nb = [int(i...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s008231901', 's689713498', 's767751880', 's870289672', 's799050908']
[8912.0, 9220.0, 9140.0, 9200.0, 9204.0]
[27.0, 26.0, 25.0, 27.0, 28.0]
[224, 286, 202, 203, 203]
p02760
u265290982
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a1_1, a1_2, a1_3 = map(int, input().split())\na2_1, a2_2, a2_3 = map(int, input().split())\na3_1, a3_2, a3_3 = map(int, input().split())\na_list=[a1_1, a1_2, a1_3, a2_1, a2_2, a2_3, a3_1, a3_2, a3_3]\nn = int(input())\nb=[]\nfor i in range(n):\n b_i = int(input())\n b.append(b_i)\n for j, a_j in enumerate(a_list):...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s009496277', 's068615427', 's386710113', 's479802249', 's495232236']
[3064.0, 3064.0, 3064.0, 3064.0, 3188.0]
[17.0, 18.0, 18.0, 17.0, 17.0]
[889, 890, 697, 762, 967]
p02760
u268181283
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["arr = []\nans = []\nfor i in range(3):\n arr.extend(list(map(int,input().split())))\nN = int(input())\nfor j in range(N):\n num = int(input())\n if num in arr:\n ans.append(arr.index(num))\n print(ans)\nans = set(ans)\nif (set([0,1,2])<=ans)or(set([3,4,5])<=ans)or(set([6,7,8])<=ans)or(set([0,3,6])<=ans)or(se...
['Wrong Answer', 'Accepted']
['s067649268', 's338556106']
[3064.0, 3064.0]
[17.0, 17.0]
[423, 408]
p02760
u268318377
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import numpy as np\n\n\nA = np.array([list(map(int, input().split())) for _ in range(3)])\nn = int(input())\nfor _ in range(n):\n b = int(input())\n A = np.where(A == b, 0, A)\n \nx = np.all(A[[0, 1, 2], [0, 1, 2]] == 0)\ny = np.all(A[[0, 1, 2], [2, 1, 0]] == 0)\nz = np.any(np.sum(A, axis=0) == 0)\nw = np.any(np.s...
['Runtime Error', 'Accepted']
['s909390754', 's703088377']
[3064.0, 12488.0]
[18.0, 153.0]
[372, 386]
p02760
u270983294
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import numpy as np\n \na1,a2,a3 = map(int,input().split())\na4,a5,a6 = map(int,input().split())\na7,a8,a9 = map(int,input().split())\n \na = np.array([[a1, a2, a3], [a4, a5, a6], [a7, a8, a9]])\n \nn = int(input)\nfor i in range(n):\n b = int(input())\n a[a == b] = 0\n\nif np.sum(a[1,:]) == 0:\n print("Yes")\nelif...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s457349870', 's482897840', 's598694441', 's633235643', 's700200392', 's897846682', 's537404382']
[12500.0, 12436.0, 21504.0, 12020.0, 2940.0, 21504.0, 12020.0]
[149.0, 152.0, 325.0, 158.0, 17.0, 324.0, 150.0]
[630, 636, 636, 707, 619, 637, 697]
p02760
u273010357
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import numpy as np\nA = np.array([list(map(str, input().split())) for _ in range(3)])\nN = int(input())\nb = [input() for _ in range(N)]\n\nfor i in range(3):\n for j in range(3):\n if A[i][j] in b:\n A[i][j] = 'X'\nprint(A)\n\nif A[0][0] == A[1][1] == A[2][2] == 'X':\n print('Yes')\n exit(...
['Wrong Answer', 'Accepted']
['s000086795', 's622770270']
[21436.0, 21656.0]
[983.0, 906.0]
[810, 801]
p02760
u274758786
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import sys\na = [list(map(int, input().split())) for i in range(3)]\nn = int(input())\nb = [int(input()) for i in range(n)]\n\nfor i in range(3):\n ans = True\n for j in range(3):\n if a[i][j] not in b:\n ans = False\n if ans:\n print("Yes")\n sys.exit()\nfor j in range(3):\n ...
['Wrong Answer', 'Accepted']
['s802923175', 's162086546']
[3064.0, 3064.0]
[17.0, 17.0]
[595, 595]
p02760
u276686572
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['row1 = list(map(int,input().split()))\nrow2 = list(map(int,input().split()))\nrow3 = list(map(int,input().split()))\n\nn = int(input())\nnums = []\nans = "No"\n\nfor i in range(0, n):\n nums.append(int(input()))\n \nfor i in range(0,3):\n if row1[i] in nums: row1[i] == "O"\n if row2[i] in nums: row2[i] == "O"\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s139633599', 's295033545', 's403065742']
[9264.0, 9260.0, 9148.0]
[27.0, 29.0, 26.0]
[627, 622, 620]
p02760
u277104886
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["#Bingo\ncard = [list(map(int, input().split())) for _ in range(3)]\nN = int(input())\nb = [int(input()) for _ in range(N)]\na = [[0]*3 for _ in range(3)]\nfor bi in b:\n for i in range(3):\n for j in raneg(3):\n if bi == card[i][j]:\n a[i][j] = 1\n \nans = 'No'\n#tat...
['Runtime Error', 'Accepted']
['s415440832', 's253514025']
[3064.0, 3064.0]
[18.0, 18.0]
[671, 677]
p02760
u277298370
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import numpy as np\n\na1 = list(map(int, input().split(' ')))\na2 = list(map(int, input().split(' ')))\na3 = list(map(int, input().split(' ')))\nn = int(input())\n\nnums = [int(input()) for _ in range(n)]\n\narr = np.array([a1, a2, a3])\nmask = np.zeros_like(arr)\n\nfor num in nums:\n idx = np.where(arr == num)\n\...
['Wrong Answer', 'Accepted']
['s582851795', 's053997221']
[12516.0, 20968.0]
[154.0, 290.0]
[673, 657]
p02760
u278001641
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['\nA11,A12,A13 = input().split()\nA21,A22,A23 = input().split()\nA31,A32,A33 = input().split()\n\nN = int(input())\na = list()\n\nfor i in range(N):\n a.append(input())\n if a[0+i] == A11:\n A11 = True\n elif a[0+i] == A12:\n A12 = True\n elif a[0+i] == A13:\n A13 = True\n elif a[0+...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s380761060', 's632458948', 's821181306', 's446886954']
[9184.0, 9356.0, 9024.0, 9340.0]
[29.0, 33.0, 27.0, 33.0]
[1127, 1215, 1141, 1400]
p02760
u278353498
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["b = []\nfor i in range(N) :\n b.append(int(input()))\n\nm = [[0,0,0],[0,0,0],[0,0,0]]\n\nfor i in range(N) :\n for j in range(3) :\n for k in range(3) :\n if b[i] == a[j][k] :\n m[j][k] = 1\nif m[0].count(1) == 3 or \\\n m[1].count(1) == 3 or \\\n m[2].count(1) == 3 or \\...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s105174943', 's522141822', 's602421375', 's628435104', 's672471265', 's872211493', 's374980420']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3188.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 23.0, 18.0, 17.0]
[582, 740, 525, 325, 741, 873, 874]
p02760
u278356323
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["# ABC157b\n\n\ndef main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10**6)\n \n bing = [list(map(int, input().split())) for _ in range(3)]\n n = int(input())\n b = [int(input()) for _ in range(n)]\n for num in b:\n for i in bing:\n try:\n ...
['Runtime Error', 'Accepted']
['s766076933', 's477137431']
[3064.0, 3064.0]
[17.0, 17.0]
[1044, 943]
p02760
u281610856
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a = [list(map(int, input().split())) for _ in range(3)]\nn = int(input())\nfor i in range(n):\n b = int(input())\n for j in range(3):\n if b in a[j]:\n idx = a[j].index(b)\n a[j][idx] = 0\nprint(a)\nfor k in range(3):\n if sum(a[k]) == 0: \n print(\'Yes\')\n exit()...
['Wrong Answer', 'Accepted']
['s695937021', 's878028054']
[3064.0, 12492.0]
[17.0, 148.0]
[509, 571]
p02760
u281796054
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['ソースコード \n\nCopy\nCopy\nA=[]\nflag=0\nfor i in range(3):\n A.append(list(map(int,input().split())))\nn=int(input())\nfor i in range(n):\n s=int(input())\n for k in range(3):\n if s in A[k]:\n A[k][A[k].index(s)]=0\n\nif A[0]==[0,0,0] or A[1]==[0,0,0] or A[2]==[0,0,0]:\n print("Yes")\n flag=1\nelif A[1][1]...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s067624339', 's719626893', 's225516210']
[3064.0, 3064.0, 3064.0]
[17.0, 18.0, 18.0]
[589, 567, 558]
p02760
u283751459
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['bingo = [list(map(int,input().split())) for i in range(3)]\nn = int(input())\nnum = [int(input()) for _ in range(n)]\nprint(bingo)\n\nfor i in range(3):\n for j in range(3):\n if bingo[i][j] in num:\n bingo[i][j] = 0\nprint(bingo)\n\nfor i in range(3):\n if bingo[i].count(0) == 3:\n print("Yes")\n exi...
['Wrong Answer', 'Accepted']
['s530573405', 's757560061']
[9148.0, 9264.0]
[28.0, 27.0]
[616, 590]
p02760
u284363684
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['# input\nA = []\nA_append = A.append\nfor i in range(3):\n An = list(map(int, input().split()))\n A_append(An)\nprint(A)\n\nN = int(input())\n\nb = []\nappend = b.append\nfor i in range(N):\n bn = int(input())\n append(bn)\n\n\n\nmarker = [[0 * 3], [0 * 3], [0 * 3]]\nbingo_fl = False\nfor i in b:\n if ...
['Wrong Answer', 'Accepted']
['s154636964', 's076955304']
[3064.0, 3064.0]
[18.0, 17.0]
[777, 788]
p02760
u290886932
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A1 = list(map(int, input().split()))\nA2 = list(map(int, input().split()))\nA3 = list(map(int, input().split()))\nA = [A1,A2,A3]\nbingomap = [[0,0,0],[0,0,0],[0,0,0]]\nprint(A)\nN = int(input())\nb = list()\nret = 'No'\nfor i in range(N):\n b.append(int(input()))\n print(b)\n for i in range(N):\n for j in range...
['Runtime Error', 'Accepted']
['s581711532', 's681319463']
[3064.0, 3064.0]
[17.0, 17.0]
[812, 774]
p02760
u291988695
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['l=[[]]*3\nfor k in range(3):\n l[k]=list(map(int,input().split()))\nn=int(input())\nll=[[0,0,0]]*3\nfor k in range(n):\n i=int(input())\n for j in range(3):\n if i in l[j]:\n ll[j][l.index(i)]=1\na=0\nif ll[0][0]==1:\n if ll[0][1]==1 and ll[0][2]==1:\n print("Yes")\n a=1\n elif ll[1][1]==1 and ll[2...
['Runtime Error', 'Accepted']
['s020670560', 's043618727']
[3188.0, 3064.0]
[19.0, 17.0]
[783, 674]
p02760
u294385082
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = [list(map(int,input().split())) for i in range(3)]\nn = int(input())\nb = [int(input()) for i in range(n)]\n\nfor i in range(3):\n for j in range(3):\n for k in b:\n if k == a[i][j]:\n a[i][j] = 101\n break\n \nif a[1] == [101,101,101] or a[2] == [101,101,101] or a[3] == [101...
['Runtime Error', 'Accepted']
['s422355055', 's563464084']
[3064.0, 3064.0]
[18.0, 18.0]
[691, 510]
p02760
u295797489
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['for i in range(3):\n line = input().rstrip().split(\' \')\n array_1.append(line)\n\nbool_array = []\nfor i in range(3):\n tmp = []\n for j in range(3):\n tmp.append(False)\n bool_array.append(tmp)\nnum = int(input().rstrip())\nfor i in range(num):\n input_line = input().rstrip()\n for j in...
['Runtime Error', 'Accepted']
['s938973969', 's050317182']
[3064.0, 3064.0]
[17.0, 17.0]
[802, 815]
p02760
u296101474
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['60 88 34\n92 41 43\n65 73 48\n10\n60\n43\n88\n11\n48\n73\n65\n41\n92\n34', "row1 = input().split()\nrow2 = input().split()\nrow3 = input().split()\n\nn = int(input())\nnums = [input() for i in range(n)]\n\nrows = [row1, row2, row3]\n\nfor i in range(0, 3):\n rows += [[row1[i], row2[i], row3[i]]]\n\nrows += [[row1[...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s339547173', 's771144249', 's907532112']
[2940.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0]
[59, 471, 622]
p02760
u297089927
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['li=[]\na,b,c=map(int,input().split())\nd,e,f=map(int,input().split())\ng,h,i=map(int,input().split())\nn=int(input())\nfor i in range(n):\n j=int(input())\n li.append(j)\nbingo=0\nyoko1=a and b and c in li\nyoko2=d and e and f in li\nyoko3=g and h and i in li\nyoko=yoko1 or yoko2 or yoko3\ntate1=a and d and g in li...
['Wrong Answer', 'Accepted']
['s507439670', 's152852715']
[3064.0, 3064.0]
[17.0, 17.0]
[531, 676]
p02760
u297103202
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A = [list(map(int,input().split())) for i in range(3)]\nA_flat=[]\nfor i in range(len(A)):\n A_flat.append(A[i][0])\n A_flat.append(A[i][1])\n A_flat.append(A[i][2])\n\nN = int(input())\nb = [int(input()) for i in range(N)]\nfor i in range(len(b)):\n if b[i] in A_flat:\n index = A_flat.index(b[i])\...
['Runtime Error', 'Accepted']
['s711969037', 's574363584']
[3064.0, 3064.0]
[17.0, 17.0]
[751, 750]
p02760
u297801580
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = []\nfor i in range(3):\n a.append([int(x) for x in input().split()])\nbing = [([0]*3),([0]*3),([0]*3)]\n\nN=int(input())\nbs = [int(input()) for _ in range(N)]\n\nfor b in bs:\n for i in range(3):\n for j in range(3):\n if a[i][j]==b:\n bing[i][j]=1\n\ndef isbingo(board):\n ...
['Wrong Answer', 'Accepted']
['s468852389', 's262583989']
[3064.0, 3064.0]
[18.0, 17.0]
[689, 676]
p02760
u302697704
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A11,A12,A13 = map(int,input().split())\nA21,A22,A23 = map(int,input().split())\nA31,A32,A33 = map(int,input().split())\n\nAlist = []\nAlist.append(A11)\nAlist.append(A12)\nAlist.append(A13)\nAlist.append(A21)\nAlist.append(A22)\nAlist.append(A23)\nAlist.append(A31)\nAlist.append(A32)\nAlist.append(A33)\nbingolist =[0...
['Wrong Answer', 'Accepted']
['s852564163', 's039839424']
[9052.0, 9128.0]
[32.0, 29.0]
[908, 909]
p02760
u303739137
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a = input().split()\na += input().split()\na += input().split()\nn = int(input())\nb = set([(input()) for i in range(n)])\n\nbingo = False\nif set([a[0], a[1], a[2]]).issubset(b):\n\tbingo = True\nif set([a[3], a[4], a[5]]).issubset(b):\n\tbingo = True\nif set([a[6], a[7], a[8]]).issubset(b):\n\tbingo = True\nif set(...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s675534742', 's914922801', 's980153694', 's036537598']
[3064.0, 2940.0, 3192.0, 3064.0]
[20.0, 17.0, 17.0, 17.0]
[577, 574, 603, 611]
p02760
u304593245
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['\nA = [list(map(int, input().split())) for i in range(3)]\nN = int(input())\nB = [int(input()) for i in range(N)]\nprint(A)\nprint(N)\nprint(B)\nfor i in range(N):\n for j in range(3):\n for k in range(3):\n if A[j][k] == B[i]:\n A[j][k] = 0\nprint(A)\nfor i in range(3):\n if (A...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s037232490', 's829382654', 's661270593']
[3064.0, 3064.0, 3188.0]
[20.0, 17.0, 19.0]
[607, 608, 611]
p02760
u305534505
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['def main():\n A = [list(map(int, input().split())) for i in range(3)]\n N = int(input())\n b = [int(input()) for i in range(N)]\n \n for i in range(3):\n for j in range(3):\n for k in range(N):\n if (A[i][j] == b(k)):\n A[i][j] = 0\n \n ans = "N...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s173157639', 's290579089', 's977369057', 's578368780']
[3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 17.0, 19.0, 17.0]
[590, 530, 538, 588]
p02760
u309120194
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = []\nA.append(input().split())\nA.append(input().split())\nA.append(input().split())\nN = int(input())\nb = [input() for _ in range(N)]\n \nfor i in range(N):\n for j in range(3):\n if b[i] in A[j]: A[j][A[j].index(b[i])] = True\n \nif (A[0] and A[3] and A[6]) or (A[1] and A[4] and A[7]) or (A[2] and A[5] a...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s118847669', 's291529219', 's863636784', 's921522408', 's547348690']
[9248.0, 9156.0, 9120.0, 9064.0, 9144.0]
[28.0, 24.0, 23.0, 27.0, 27.0]
[469, 487, 582, 611, 730]
p02760
u311176548
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A=[]\nfor i in range(0,3):\n k=list(map(int,input().split(' ')))\n A.append(k)\nn=int(input())\nb=[]\nfor i in range(0,n+1):\n b.append(int(input()))\nfor i in range(0,2):\n if (A[1][i] and A[2][i] and A[0][i]) in b:\n print('Yes')\n quit()\n if (A[i][1] and A[i][2] and A[i][0]) in b:\n ...
['Runtime Error', 'Accepted']
['s503239359', 's106417637']
[3192.0, 3064.0]
[18.0, 17.0]
[492, 530]
p02760
u315354220
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A_list_yoko1 = list(map(int, input().split()))\nA_list_yoko2 = list(map(int, input().split()))\nA_list_yoko3 = list(map(int, input().split()))\nN = int(input())\nB_list = []\nfor i in range(N):\n B_list.append(int(input()))\n\nA_list_tate1 = []\nA_list_tate2 = []\nA_list_tate3 = []\nA_list_naname1 = []\nA_list_nan...
['Wrong Answer', 'Accepted']
['s638629700', 's768150009']
[3188.0, 3188.0]
[23.0, 18.0]
[1988, 1980]
p02760
u322099043
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import math\nimport sys\n\ninput = sys.stdin.readline\n\n\ndef main():\n bingo = [list(map(int, input().split())) for _ in range(3)]\n for _ in range(int(input())):\n n = int(input())\n for i in range(3):\n for j in range(3):\n if bingo[i][j] == n:\n bi...
['Wrong Answer', 'Accepted']
['s136517773', 's507149907']
[3064.0, 3064.0]
[18.0, 17.0]
[1207, 1207]
p02760
u322297639
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import numpy as np\ndef main():\n a_list = np.array([list(map(int, input().split())) for _ in range(3)])\n n = int(input())\n b_list = [int(input()) for _ in range(n)]\n for b in b_list:\n tmp = np.argwhere(a_list == b).tolist()\n if tmp:\n a_list[tmp[0][0], tmp[0][1]] = 0\n pr...
['Wrong Answer', 'Accepted']
['s233883674', 's440567694']
[12924.0, 21012.0]
[164.0, 315.0]
[810, 788]
p02760
u323045245
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a = [list(map(int,input().split())) for i in range(3)] \nn = int(input()) \nb = [int(input()) for i in range(n)] \n\nfor number in b: \n for i in range(3):\n if number in a[i]: \n a[i][a[i].index(number)] = 0 \n\nif a[0][0] == a[1][1] == a[2][2] == 0 or a[2][0] == a[1][1] == a[0][2] == 0:\n pr...
['Runtime Error', 'Runtime Error', 'Accepted']
['s633166793', 's762720610', 's232526027']
[3064.0, 3064.0, 3064.0]
[18.0, 17.0, 17.0]
[830, 554, 686]
p02760
u329049771
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['# d = [[0]*3] * 3\n\n# a = [[i for i in map(int, input().split())] for j in range(3)]\n# n = int(input())\n\na = [[66, 85, 92], [56, 37, 86], [7, 52, 23]]\nn = 9\nB = [30, 85, 52, 48,89, 92, 26, 5, 67]\n\nd = [[0] * 3 for i in range(3)]\nfor i in range(n):\n # b = int(input())\n b = B[i]\n for j in range(3)...
['Wrong Answer', 'Accepted']
['s328568100', 's298865246']
[3064.0, 3064.0]
[17.0, 17.0]
[1187, 883]
p02760
u333546629
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a0,a1,a2=map(int,input().split())\na3,a4,a5=map(int,input().split())\na6,a7,a8=map(int,input().split())\nN=int(input())\nb=[int(input()) for _ in range(N)]\nA=[a0,a1,a2,a3,a4,a5,a6,a7,a8]\n\nfor i in range(N):\n for p in range(9):\n if b[i]=A[p]:\n A[p]=0\n \nif A[0]==A[1]==A[2]==0 or A[3]==A[4]==A[5]==0 or...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s456174713', 's598328341', 's824435489', 's598971488']
[2940.0, 3060.0, 2940.0, 3192.0]
[17.0, 17.0, 17.0, 17.0]
[478, 478, 474, 479]
p02760
u333700164
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a=[list(map(int,input().split())) for _ in [0]*3]\nn=int(input())\nb=[int(input()) for _ in range(n)]\n\nimport numpy as np\n\nfor i in range(3):\n a[i]=[1 if x in b else 0 for x in a[i]] \n\ns_1=max(np.sum(a,axis=0))\ns_2=max(np.sum(a,axis=1))\ns_3=a[0][0]+a[1][1]+a[2][2]\ns_4=a[0][2]+a[1][1]+a[2][0]\n\nif max(s_...
['Wrong Answer', 'Accepted']
['s511894529', 's854431397']
[27192.0, 30072.0]
[118.0, 342.0]
[366, 357]
p02760
u334983390
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = [list(map(int, input().split())) for _ in range(3)]\nN = int(input())\nB = []\nfor j in range(N):\n b = int(input())\n B.append(b)\nA = np.array(A)\nB = np.array(B)\nboolean_matrix = np.isin(A, B)\nif boolean_matrix.sum(axis=1).max() >= 3 or boolean_matrix.sum(axis=0).max() >= 3 or np.diag(boolean_matrix).s...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s456515653', 's695912770', 's722884506', 's077260402']
[9116.0, 9128.0, 9132.0, 27120.0]
[24.0, 22.0, 23.0, 115.0]
[407, 413, 422, 441]
p02760
u335278042
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import collections as c\nimport sys\ninput = sys.stdin.readline\nip = lambda : map(int, input().split())\nmod = 10**9+7\n# ##############\nA = []\nfor i in range(3):\n A.append(list(ip()))\nN = int(input())\nfor i in range(N):\n b = int(input())\n for j in range(3):\n for k in range(3):\n i...
['Wrong Answer', 'Accepted']
['s650662069', 's448217809']
[3316.0, 3444.0]
[21.0, 30.0]
[635, 637]
p02760
u335281728
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A = [list(map(int,input().split())) for i in range(3)]\nN = int(input())\nB = [list(map(int,input().split())) for i in range(N)]\n\nfor i in range(3):\n for j in range(3):\n for k in range(N):\n if A[i][j] in B[k]:\n A[i][j] = 0\nif A[0][0] == 0 and A[0][1] == 0 and A[0][2] == 0 or...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s281033148', 's344457546', 's762204524']
[3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0]
[705, 650, 696]
p02760
u342062419
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import numpy as np\na = [[input().split() for l in range(3)]]\na = np.ravel(a)\nn = int(input())\nb = [input() for i in range(n)]\nans = 'No'\n\ndef check(a,b):\n return set(a).issubset(b)\n\nfor i in range(3):\n print(a[i*3:(i*3)+2])\n if check(a[i*3:(i*3)+3],b) or check(a[i:i+6:3],b) or check(a[0:8:4],b) o...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s171863460', 's216577316', 's235360310', 's320493775', 's351421455', 's500460392', 's811816856', 's942063966', 's565018210']
[26960.0, 27152.0, 26784.0, 27380.0, 27028.0, 27200.0, 26568.0, 27260.0, 27192.0]
[116.0, 113.0, 118.0, 115.0, 122.0, 113.0, 120.0, 127.0, 119.0]
[358, 326, 321, 262, 303, 326, 261, 288, 343]
p02760
u345483150
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a=[[int(x) for x in input().split()] for i in range(3)]\nn=int(input())\nb=list(map(int,input().split()))\nfor i in b:\n for j in a:\n if i==j:\n j=0\nif a[0][0]==a[0][1]==a[0][2] or a[1][0]==a[1][1]==a[1][2] or a[2][0]==a[2][1]==a[2][2] or a[0][0]==a[1][0]==a[2][0] or a[0][1]==a[1][1]==a[2][1] or a[0][2]==a...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s019962567', 's057200428', 's078733319', 's306106277', 's531314357', 's649257059', 's667205864', 's397466722']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0, 18.0, 17.0, 19.0, 17.0, 18.0]
[423, 554, 475, 492, 497, 493, 475, 517]
p02760
u347452770
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['bingo = []\nbingo[0] , bingo[1] , bingo[2] = map(int, input().split())\nbingo[3] , bingo[4], bingo[5] = map(int, input().split())\nbingo[6], bingo[7], bingo[8] = map(int, input().split())\nn = int(input())\nls = []\ncounter = 0\nfor i in range(n):\n ls[i] = int(input())\n\nfor i in range(len(bingo)):\n for j in ran...
['Runtime Error', 'Accepted']
['s780249951', 's364589775']
[3064.0, 3188.0]
[18.0, 18.0]
[1170, 1188]
p02760
u349888092
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['X = [[0 for i in range(3)] for j in range(3)]\nfor x in range(3):\n Y = list(map(int,input().split()))\n\n #print(Y[0])\n for y in range(3):\n X[x][y] = Y[y]\n# print(x,y,X[x][y],Y[y])\nprint(X)\n\n\nN = int(input())\nB = []\nfor x in range(N):\n B.append(int(input()))\n#print(X)\n\nfor x in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s260399352', 's406105259', 's711771843']
[3064.0, 3064.0, 3188.0]
[17.0, 17.0, 19.0]
[797, 802, 803]
p02760
u352402050
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = [list(map(int, input().split())) for i in range(3)]\nN = int(input())\nb = [int(input()) for i in range(N)]\nprint(A)\n\nfor i in range(3):\n for j in range(3):\n if A[i][j] in b:\n A[i][j] = 0\n \nfor i in range(3):\n if A[i][0] + A[i][1] + A[i][2] == 0 or A[0][i] + A[1][i] + A[2][i] == 0 or A[0][0]+A...
['Wrong Answer', 'Accepted']
['s122782720', 's899516160']
[3064.0, 3064.0]
[17.0, 18.0]
[421, 457]
p02760
u353652911
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['for i in range(n):\n bb=int(input())\n for j in range(3):\n if bb==b1[j]:\n b1[j]=0\n elif bb==b2[j]:\n b2[j]=0\n elif bb==b3[j]:\n b3[j]=0\nif sum(b1)==0 or sum(b2)==0 or sum(b3)==0:\n print("Yes")\nelif b1[0]==b2[0]==b3[0]==0:\n print("Yes")\nelif b1...
['Runtime Error', 'Accepted']
['s227487681', 's633990443']
[3064.0, 3064.0]
[18.0, 17.0]
[509, 624]
p02760
u353919145
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['matrix = []\nfor i in range(3):\n line = []\n line = input().split(" ")\n matrix.append(line)\n\nn = int(input())\nchosen = 0\n\nfor i in range(n):\n b = input()\n for i in range(3):\n for j in range(3):\n if matrix[i][j] == b:\n chosen += 1\n matrix[i][j...
['Wrong Answer', 'Accepted']
['s572011863', 's427334304']
[9296.0, 9232.0]
[27.0, 30.0]
[1055, 1054]
p02760
u355649707
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["def main():\n import numpy as np\n\n card = np.array([list(map(int, input().split())) for _ in range(3)])\n n = int(input())\n for _ in range(n):\n b = int(input())\n card = np.where(card == b, 0, card)\n\n is_bingo = False\n is_bingo = np.sum(card, axis=0).min() == 0\n is_bingo = n...
['Wrong Answer', 'Accepted']
['s381218735', 's840404204']
[12432.0, 12432.0]
[150.0, 150.0]
[513, 595]
p02760
u357751375
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a11,a12,a13 = input().split()\na21,a22,a23 = input().split()\na31,a32,a33 = input().split()\n\nn = int(input())\nb = list()\ni = 0\n\nfor i in range(n):\n b.append(int(input()))\n\nif a11 in b:\n a11 = 'T'\n\nif a12 in b:\n a12 = 'T'\n\nif a13 in b:\n a13 = 'T'\n\nif a21 in b:\n a21 = 'T'\n\nif a22 in ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s395797166', 's573447024', 's286535299']
[3064.0, 3064.0, 9096.0]
[17.0, 18.0, 28.0]
[1234, 1234, 562]
p02760
u362771726
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['import sys\nfrom io import StringIO\nimport unittest\n\nimport numpy as np\n\ndef resolve():\n a = np.array([list(map(int, input().split())) for _ in range(3)])\n n = int(input())\n b = set([int(input()) for _ in range(n)])\n flag = 0\n\n for i in range(3):\n if set(a[i]).issubset(b) or set(a[:,...
['Wrong Answer', 'Accepted']
['s054279966', 's293422337']
[12312.0, 12440.0]
[157.0, 160.0]
[1417, 1465]
p02760
u364774090
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = [[j for j in list(map(int, input().split()))] for i in range(3)]\nN = int(input())\nB = []\nfor _ in range(N):\n\tb = int(input())\n\tfor r in A:\n\t\tfor i in range(len(r)):\n\t\t\tif r[i] == b:\n\t\t\t\tr[i] = 0\nans = False\nfor i in range(3):\n\tif sum(A[i]) == 0:\n\t\tans = True\nif not ans:\n\tfor i in rang...
['Runtime Error', 'Accepted']
['s188586989', 's024092493']
[8956.0, 9120.0]
[27.0, 29.0]
[504, 505]
p02760
u365375535
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import numpy as np\n\ndef run():\n A = [list(map(int, input().split())) for n in range(3)]\n A = np.array(A)\n N = int(input())\n for n in range(N):\n b = int(input())\n for i in range(3):\n for j in range(3):\n a = A[i][j]\n if a == b:\n A[i][j] = 0\n print(A)\n ans = 1\n lef...
['Wrong Answer', 'Accepted']
['s630124012', 's710903162']
[12640.0, 12496.0]
[154.0, 149.0]
[594, 583]
p02760
u366836739
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['# coding: utf-8\ndef main():\n a = list(map(int, input().split()))\n b = list(map(int, input().split()))\n c = list(map(int, input().split()))\n A = [a,b,c]\n n = int(input())\n B = []\n C = []\n for i in range(n):\n B.append(int(input()))\n for i in range(3):\n for j in range...
['Wrong Answer', 'Accepted']
['s380788186', 's295546721']
[3064.0, 3188.0]
[18.0, 19.0]
[771, 866]
p02760
u367147039
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a=[]\nfor i in range(3):\n a.append(list(map(int,input().split())))\nn=input()\nfor i in range(n):\n b=int(input())\n for j in range(3):\n for k in range(3):\n if a[i][j]==b:\n a[i][j]=0\n\nans=0\nfor l in range(3):\n if a[l][0]==0 and a[l][1]==0 and a[l][2]==0:\n a...
['Runtime Error', 'Accepted']
['s560577352', 's151900501']
[9008.0, 9240.0]
[24.0, 28.0]
[579, 589]
p02760
u368579103
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a = [input().split() for i in range(3)]\nn = int(input())\nb = [int(input()) for i in range(n)]\ntotal = []\ns = 0\n \nfor i in range(n):\n for k in range(3):\n for j in range(3):\n if b[i] == int(a[k][j]):\n total.append(s + j)\n s = s + 3\nif ((0 and 1 and 2) in total) or ((3 and 4 and 5) in tota...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s514851651', 's964678859', 's648417308']
[3064.0, 3064.0, 3064.0]
[20.0, 18.0, 17.0]
[524, 589, 767]
p02760
u373047809
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['# Atcoder ABC 157\n\n\na = []\n for i in range(3):\n a.append(list(map(int,input().split())))\n\nn = int(input())\n\nfor _ in range(n): #b_n roop\n b = int(input())\n for i in range(3):\n for j in range(3):\n if b == a[i][j]:\n a[i][j] == 0 #make a 0\n \nfor i in range(3):\n if sum(a[i...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s288808692', 's317000371', 's666420283', 's638511156']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 18.0, 17.0, 17.0]
[665, 665, 664, 694]
p02760
u374082254
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A1 = list(map(int, input().split()))\nA2 = list(map(int, input().split()))\nA3 = list(map(int, input().split()))\n\nA = A1 + A2 + A3\nN = int(input())\n\nindex = []\nfor i in range(N):\n index.append(A.index(int(input())))\n\nif (0 in index and 3 in index and 6 in index) or \\\n (1 in index and 4 in index and 7 ...
['Runtime Error', 'Accepted']
['s434920952', 's872559991']
[3064.0, 3064.0]
[17.0, 17.0]
[609, 710]
p02760
u375477204
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A = [0]*3\nb = [0]*N\nfor i in range(0, 3):\n A[i] = list(map(int, input().split()))\nN = int(input())\nfor i in range(0, N):\n b[i] = int(input())\nfor i in range(0, 3):\n for j in range(0, 3):\n for k in range(0, N):\n if A[i][j] == b[k]:\n A[i][j] = 0\nif A[0] == [0, 0, 0]...
['Runtime Error', 'Runtime Error', 'Accepted']
['s337459699', 's882730711', 's480256202']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[685, 686, 685]
p02760
u378702452
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A = [list(map(int, input().split())) for _ in range(3)]\nn = input()\nB = list(map(int, input().split()))\nans = False\n\nbingolist = []\nfor i in range(3):\n bingolist.append([A[i][0], A[i][1], A[i][2]])\n bingolist.append([A[0][i], A[1][i], A[2][i]])\n\nbingolist.append([A[0][0], A[1][1], A[2][2]])\nbingolist.app...
['Runtime Error', 'Accepted']
['s014488406', 's067220721']
[3064.0, 3064.0]
[17.0, 17.0]
[430, 455]
p02760
u381959472
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["import sys\n\nAList = []\nBingoList = [[0, 0, 0],\n [0, 0, 0],\n [0, 0, 0]]\n\nfor i in range(3):\n AList.append(list(map(int, input().split())))\n \n\nN = int(input())\n\ntmp = -1\nfor i in range(N):\n tmp = int(input())\n for p in range(3):\n for q in range(3):\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s724125494', 's822253190', 's167952058']
[3064.0, 3064.0, 3064.0]
[18.0, 17.0, 41.0]
[849, 849, 849]
p02760
u382169090
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = []\nfor i in range(3):\n A1,A2,A3 = map(int,input().split())\n A.append(int(A1))\n A.append(int(A2))\n A.append(int(A3))\n\nN = int(input())\nb = []\n\nfor i in range(N):\n b.append(int(input()))\n\nmatch = ''\n\nfor star in b:\n for i, item in enumerate(A):\n if item == star:\n match += str(i)\n\nm...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s393210485', 's817754058', 's261130350']
[3188.0, 3064.0, 3064.0]
[20.0, 19.0, 17.0]
[834, 824, 766]
p02760
u382407432
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a1 = list(map(int,input().split()))\na2 = list(map(int,input().split()))\na3 = list(map(int,input().split()))\n\nl1=[a1[0],a2[0],a3[0]]\nl2=[a1[1],a2[1],a3[1]]\nl3=[a1[2],a2[2],a3[2]]\nl4=[a1[0],a1[1],a1[2]]\nl5=[a2[0],a2[1],a2[2]]\nl6=[a3[0],a3[1],a3[2]]\nl7=[a1[0],a2[1],a3[2]]\nl8=[a1[2],a2[1],a3[0]]\n\nN=int(input...
['Runtime Error', 'Accepted']
['s749504498', 's675722073']
[3064.0, 3192.0]
[17.0, 18.0]
[616, 779]
p02760
u384122990
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['A1 = list(map(int, input().split()))\nA2 = list(map(int, input().split()))\nA3 = list(map(int, input().split()))\nN = input()\nb = [(int(input())) for _ in range(N)]\n\nprint(A1)', '\nA = [list(map(int, input().split())) for i in range(3)]\nN = int(input())\nb = [(int(input())) for _ in range(N)]\n\nbingo1 = [0, 0, 0...
['Runtime Error', 'Accepted']
['s539064929', 's988465781']
[3060.0, 3064.0]
[18.0, 18.0]
[172, 927]
p02760
u384476576
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a_list = []\nfor i in range(3):\n for j in list(map(int, input().split())):\n a_list.append()\n\nN = int(input())\n\nb_list = []\nfor i in range(N):\n b_list.append(int(input())) \n \nfor b in b_list:\n if b in a_list:\n a_list[a_list.index(b)] = 0\n# 123\n# 456\n# 789\n\nline_list = ...
['Runtime Error', 'Accepted']
['s076251571', 's564258725']
[3064.0, 3064.0]
[18.0, 18.0]
[668, 669]
p02760
u387080888
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a=[]\nb=[]\nfor _ in range(3):\n a.append(list(map(int,input().split())))\nfor _ in range(int(input())):\n b.append(int(input()))\nfor i in range(N):\n for j in range(3):\n for k in range(3):\n if b[i]==a[k][j]:\n a[k][j]=0\nif (a[0][0]==0 and a[0][1]==0 and a[0][2]==0)or(a[1...
['Runtime Error', 'Accepted']
['s202170187', 's384195730']
[3064.0, 3064.0]
[18.0, 17.0]
[661, 665]
p02760
u391675400
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a =[ list(map(int,input().split())) for _ in range(3)]\nn = int(input())\nb = [int(input()) for _ in range(n)]\n\nbingo = []\nfor i in range(3):\n for j in range(3):\n for k in range(n):\n print(a[i][j])\n if a[i][j] == b[k]:\n a[i][j] = 0\n\nfor i in range(3):\n if a...
['Wrong Answer', 'Accepted']
['s320644610', 's891155320']
[3064.0, 3064.0]
[17.0, 17.0]
[713, 675]
p02760
u393253137
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["A = []\nB = [0]*9\n\n\nfor _ in range(3):\n A += [int(i) for i in input().split()]\n\n\nn=int(input())\nfor _ in range(n):\n b = int(input())\n for i, a in enumerate(A):\n if b == a:\n B[i] = 1\n\n\nC = [[1,2,3],[4,5,6],[7,8,9],[1,4,7],[2,5,8],[3,6,9],[1,5,9],[3,5,7]]\nflag = 0\n\n\nfor a,b...
['Runtime Error', 'Accepted']
['s150288182', 's709124227']
[3316.0, 3444.0]
[19.0, 19.0]
[583, 584]
p02760
u393881437
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["a1 = list(map(int, input().split()))\na2 = list(map(int, input().split()))\na3 = list(map(int, input().split()))\nresult = 'No'\n\nn = int(input())\nfor i in range(n):\n\tIn = int(input())\n \n\ta1 = ['' if a1[j] == In else a1[j] for j in range(3)]\n\ta2 = ['' if a2[j] == In else a2[j] for j in range(3)]\n\ta3 = [...
['Wrong Answer', 'Accepted']
['s124458625', 's914608459']
[3064.0, 3064.0]
[18.0, 18.0]
[764, 738]
p02760
u399517478
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['n1 = list(map(int, input().split()))\nn2 = list(map(int, input().split()))\nn3 = list(map(int, input().split()))\narr = []\nz=0\nfor i in range(10):\n arr.append(int(input()))\n if arr[i] == n1[0] or arr[i] == n1[1] or arr[i] == n1[2] or arr[i] == n2[0] or arr[i] == n2[1] or arr[i] == n2[2] or arr[i] == n3[0] o...
['Runtime Error', 'Runtime Error', 'Accepted']
['s238354099', 's351206687', 's319580941']
[3064.0, 3064.0, 3064.0]
[18.0, 17.0, 17.0]
[403, 403, 766]
p02760
u405080602
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["\nA = [list(map(int, input().split(' '))) for _ in range(3)]\nN = int(input())\nB = set([int(input()) for _ in range(N)])\n\nX = []\nX += [set(A[i]) for i in range(3)]\nX += [set([A[j][i] for j in range(3)]) for i in range(3)]\nX += [set([A[0][2], A[1][1], A[2][0]]), set([A[2][2], A[1][1], A[0][0]])]\n\nfor x in X:\...
['Wrong Answer', 'Accepted']
['s848691788', 's835494722']
[3064.0, 3064.0]
[17.0, 18.0]
[379, 444]
p02760
u408791346
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['a1 = list(map(int, input().split()))\na2 = list(map(int, input().split()))\na3 = list(map(int, input().split()))\na = a1+a2+a3\nn = int(input())\nb = list(int(input()) for _ in range(n))\n\nfor i in b:\n if i in a :\n a[a.index(a)] = "h"\n\nif a[0:3].count("h") == 3 or a[3:6].count("h") == 3 or a[6:9].count...
['Runtime Error', 'Accepted']
['s181755149', 's810123768']
[3064.0, 3064.0]
[17.0, 17.0]
[695, 695]
p02760
u409542115
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
['\n\nbingonum=[[0,0,0],[0,0,0],[0,0,0]]\nbingo=[["False","False","False"],["False","False","False"],["False","False","False"]]\nfor i in range(3):\n bingonum[i][0],bingonum[i][1],bingonum[i][2] = map(int,input().split())\n\nN = int(input())\nb=[]\nfor _ in range(N):\n b.append(input())\nfor x in range(N):\n f...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s012513503', 's222776674', 's241641706', 's744473076', 's882327585', 's150832085']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0]
[18.0, 17.0, 18.0, 19.0, 18.0, 17.0]
[832, 846, 835, 842, 906, 847]
p02760
u411858517
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["bingo = [list(map(int, input().split())) for _ in range(3)]\nN = int(input())\nnumber = [int(input()) for _ in range(N)]\n\ncheck = [0 for _ in range(3)]\n\nfor i in range(N):\n for j in range(3):\n for k in range(3):\n if bingo[j][k] == N[i]:\n check[j][k] = 1\n \nans = 'No'\nfor i in range(3)...
['Runtime Error', 'Runtime Error', 'Accepted']
['s017841745', 's323215440', 's289476197']
[3064.0, 3064.0, 3064.0]
[18.0, 18.0, 17.0]
[671, 688, 694]
p02760
u411923565
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["# B - Bingo\nimport itertools\nA = list()\nfor o in range(3):\n a = list(map(int, input().split()))\n A.append(a)\nN = int(input())\nb = list(int(input()) for p in range(N))\n\nbingo = [[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]],[A[0]...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s316608611', 's326797668', 's475762064', 's813973172', 's567151716']
[9264.0, 9144.0, 9184.0, 9208.0, 9268.0]
[26.0, 33.0, 31.0, 34.0, 30.0]
[617, 616, 659, 633, 598]
p02760
u417365712
2,000
1,048,576
We have a bingo card with a 3\times3 grid. The square at the i-th row from the top and the j-th column from the left contains the number A_{i, j}. The MC will choose N numbers, b_1, b_2, \cdots, b_N. If our bingo sheet contains some of those numbers, we will mark them on our sheet. Determine whether we will have a bi...
["*inputs, = map(int, open(0).read().split())\nA = inputs[:9]\nB = inputs[9:]\n\nC = [0] * 9\nfor b in B:\n if b in A:\n C[A.index(b)] = 1\n \nif any([\n all(C[:3]), all(C[3:6]), all(C[6:]),\n all(C[::3]), all(C[1::3]), all(C[2::3]),\n all([C[0], C[4], C[8]]), all([C[2], C[4], C[6]])\n ]):\n prin...
['Wrong Answer', 'Accepted']
['s154992685', 's619039646']
[3064.0, 3064.0]
[17.0, 18.0]
[341, 332]