Submission #207213

#TimeUsernameProblemLanguageResultExecution timeMemory
207213boolodifjenulaMarko (COCI15_marko)Cpython 3
15 / 50
47 ms4536 KiB
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 timeMemoryGrader output
Fetching results...