题解 | #查找兄弟单词#
查找兄弟单词
https://www.nowcoder.com/practice/03ba8aeeef73400ca7a37a5f3370fe68
a=input().split() b=list(a[-2]) sum=0 tag=0 mm=[] for i in a[1:-2]: ff=b[:] c=list(i) for k in c: #print(22222222) if (len(c)==len(b)) and (i!=a[-2]) and k in ff: tag=1 ff.remove(k) else: tag=0 break if tag==1: sum+=tag mm.append(i) print(sum) if len(mm)>=int(a[-1]): print(sorted(mm)[int(a[-1])-1])