Submission #2165134


Source Code Expand

Copy
n=int(input())
test="abcdefghijklmnopqrstuvwxyz"
c=[[0for i in range(n)]for j in range(26)]
for j in range(n):
  s=input()
  for i in range(26):
    c[i][j]+=list(s).count(test[i])
minl=[]
for i in range(26):
  minl.append(min(c[i]))
outp=""
#print(minl)
for i in range(26):
  outp+=test[i]*minl[i]
print(outp)

Submission Info

Submission Time
Task C - 怪文書 / Dubious Document
User shomu36
Language Python3 (3.4.3)
Score 300
Code Size 324 Byte
Status
Exec Time 20 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 300 / 300 0_000.txt, 0_001.txt, dec_half.txt, hand.txt, max.txt, max_10.txt, max_5.txt, maxx.txt, rnd.txt, single.txt
Case Name Status Exec Time Memory
0_000.txt 17 ms 3064 KB
0_001.txt 17 ms 3064 KB
dec_half.txt 17 ms 3060 KB
hand.txt 19 ms 3064 KB
max.txt 20 ms 3064 KB
max_10.txt 20 ms 3064 KB
max_5.txt 20 ms 3060 KB
maxx.txt 20 ms 3064 KB
rnd.txt 19 ms 3064 KB
single.txt 17 ms 3060 KB