답안 #207213

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
207213 2020-03-06T18:04:18 Z boolodifjenula Marko (COCI15_marko) Python 3
15 / 50
47 ms 4536 KB
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)
# 결과 실행 시간 메모리 Grader output
1 Correct 25 ms 3520 KB Output is correct
2 Correct 25 ms 3300 KB Output is correct
3 Runtime error 25 ms 3300 KB Execution failed because the return code was nonzero
4 Runtime error 28 ms 4412 KB Execution failed because the return code was nonzero
5 Correct 47 ms 3376 KB Output is correct
6 Runtime error 26 ms 3388 KB Execution failed because the return code was nonzero
7 Runtime error 29 ms 3900 KB Execution failed because the return code was nonzero
8 Runtime error 30 ms 4536 KB Execution failed because the return code was nonzero
9 Runtime error 26 ms 3388 KB Execution failed because the return code was nonzero
10 Runtime error 28 ms 3896 KB Execution failed because the return code was nonzero