Submission #205218

#TimeUsernameProblemLanguageResultExecution timeMemory
205218boolodifjenulaBaza (COCI17_baza)Cpython 3
50 / 50
625 ms36272 KiB
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 timeMemoryGrader output
Fetching results...