题解 | #查找兄弟单词#
查找兄弟单词
https://www.nowcoder.com/practice/03ba8aeeef73400ca7a37a5f3370fe68
word = input().split(" ") xd_word = sorted(word[1:-2]) self_word = word[-2] num = int(word[-1]) new_word = [] for i in xd_word: if i == self_word: continue elif sorted(i) == sorted(self_word) : new_word.append(i) print(len(new_word)) if len(new_word) >= num: print(new_word[num-1])#悬赏#