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

Problem_ID: K
Result: Accepted
Time: 45ms
Memory: 25312kB
Author: 13806858827
In contest: 1296


while True:
    t=int(input())
    if t==0:break
    a=input().split()
    s1=[]
    for i in range(t):
        s=list(a[i])
        s.sort()
        s1.append("".join(s))
    s2=[]
    for i in range(t):
        if s1.count(s1[i])==1:
            s2.append(int(a[i]))
    s2.sort()
    if len(s2)==0:print("None")
    else:
        for ii in s2:
            print(ii,end=" ")
        print()