Submission #3690730
Source Code Expand
import numpy as np n = int(input()) Ans = [100 for _ in range(26)] for _ in range(n): alp = [0 for _ in range(26)] s = input() for i in s: alp[ord(i)-97] += 1 Ans = np.minimum(Ans, alp) ans = '' for i in range(26): ans += chr(97+i)*Ans[i] print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - Dubious Document |
User | Tallfall |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 290 Byte |
Status | AC |
Exec Time | 165 ms |
Memory | 13356 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 | 165 ms | 13356 KB |
0_001.txt | AC | 150 ms | 12404 KB |
dec_half.txt | AC | 150 ms | 12404 KB |
hand.txt | AC | 150 ms | 12404 KB |
max.txt | AC | 152 ms | 12404 KB |
max_10.txt | AC | 151 ms | 12404 KB |
max_5.txt | AC | 151 ms | 12404 KB |
maxx.txt | AC | 151 ms | 12404 KB |
rnd.txt | AC | 151 ms | 12404 KB |
single.txt | AC | 151 ms | 12404 KB |