华为机试二星题--考古学家
import itertools as it n=int(input()) m=input().split() a=[] for each in it.permutations(m): a.append(''.join(each)) print(sorted(a))
import itertools as it n=int(input()) m=input().split() a=[] for each in it.permutations(m): a.append(''.join(each)) print(sorted(a))
相关推荐