# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
205218 | boolodifjenula | Baza (COCI17_baza) | Cpython 3 | 625 ms | 36272 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
x,y=map(int,input().split())
L=[]
for i in range(x):
L+=[list(map(int,input().split()))]
q=int(input())
for i in range(q):
M=list(map(int,input().split()))
b=0
for j in range(x):
t=1
for c in range(y):
if M[c]==L[j][c] or M[c]==-1:
continue
else:
t=0
break
if t: b+=1
print(b)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |