# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
167098 | boolodifjenula | Kartomat (COCI17_kartomat) | Cpython 3 | 27 ms | 3432 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=[]
for i in range(n):L+=[input()]
s=input()
x=len(s)
G=32*["*"]
for i in range(n):
if L[i][:x]==s: G[ord(L[i][x])-62]=L[i][x]
f=""
for i in range(32):
f+=G[i]
if (i+1)%8==0:
print(f)
f=""
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |