Submission #1303550


Source Code Expand

n = int(input())
strs = []
for i in range(n):
    strs.append("".join(sorted(input())))
bubun = []
for i in range(len(strs[0])):
    bubun.append("".join(strs[0][0:i]))
ret = ""
for i in bubun:
    #print(i,ret)
    flag = True
    for j in strs:
        if(j.find(i) == -1):
            flag = False
            break
    if(flag):
        ret = i
print(ret)

Submission Info

Submission Time
Task C - Dubious Document
User asami_KA
Language Python (3.4.3)
Score 0
Code Size 378 Byte
Status WA
Exec Time 18 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 1
WA × 1
AC × 2
WA × 8
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 WA 17 ms 2940 KB
0_001.txt AC 17 ms 3060 KB
dec_half.txt WA 17 ms 3060 KB
hand.txt WA 18 ms 3060 KB
max.txt WA 18 ms 3060 KB
max_10.txt WA 18 ms 3060 KB
max_5.txt WA 17 ms 3060 KB
maxx.txt WA 17 ms 3060 KB
rnd.txt AC 18 ms 3060 KB
single.txt WA 17 ms 3060 KB