Start: Jul, 06, 2019 10:00:00
20190706Python程序设计基础培训扩展练习
End: Jul, 17, 2019 12:00:00
Time elapsed:
Time remaining:

Problem_ID: K
Result: Accepted
Time: 48ms
Memory: 25312kB
Author: 13758494551
In contest: 1300

while True:
    t=int(input())
    s1=[]
    s2=[]
    s3=[]
    if t==0:
        break
    else:
        s=list(input().split())
        for i in s:
            x=list(i)
            x.sort()
            x="".join(x)
            s1.append(x)
        k=0
        for i in s1:
            if s1.count(i)==1:
                s3.append(s[k])
            k+=1
        if s3==[]:
            print("None")
        else:
            for i in s3:
                s2.append(int(i))
            s2.sort()
            for i in s2[:-1]:
                print(i,end=" ")
            print(s2[-1])