# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
207213 | boolodifjenula | Marko (COCI15_marko) | Cpython 3 | 47 ms | 4536 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
n=int(input())
L=[]
S=["nista","nista","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"]
for i in range(n):
L+=[input()]
b=input()
r=n
for i in range(len(b)):
for j in range(n):
if L[j]!=0 and L[j][i] not in S[int(b[i])]:
r-=1
L[j]=0
break
print(r)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |