Задача Задача №3494448
А
А
def filter_unique_words(string: str) -> list[str]: from collections import Counter
words = string.split()
counts = Counter(words)
unique = [w for w in words if counts[w] == 1]
return sorted(unique)
def filter_unique_words(string: str) -> list[str]: from collections import Counter
words = string.split()
counts = Counter(words)
unique = [w for w in words if counts[w] == 1]
return sorted(unique)