Submission #1838580
Source Code Expand
n = int(input()) Ss = [input() for i in range(n)] num = [[0] * 26 for i in range(n)] for i, S in enumerate(Ss): for c in S: num[i][ord(c) - ord('a')] += 1 minNs = list(map(min, zip(*num))) ans = '' for c, minN in zip('abcdefghijklmnopqrstuvwxyz', minNs): ans += c * minN print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - Dubious Document |
User | ZollingerPython3 |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 317 Byte |
Status | AC |
Exec Time | 19 ms |
Memory | 3060 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 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 | AC | 18 ms | 3060 KB |
0_001.txt | AC | 18 ms | 3060 KB |
dec_half.txt | AC | 18 ms | 3060 KB |
hand.txt | AC | 19 ms | 3060 KB |
max.txt | AC | 19 ms | 3060 KB |
max_10.txt | AC | 19 ms | 3060 KB |
max_5.txt | AC | 19 ms | 2940 KB |
maxx.txt | AC | 19 ms | 3060 KB |
rnd.txt | AC | 19 ms | 3060 KB |
single.txt | AC | 19 ms | 2940 KB |