Отсортировать слова в порядке лексикографического возрастания и в качестве ответа вывести...

0 голосов
67 просмотров

Отсортировать слова в порядке лексикографического возрастания и в качестве ответа вывести слово, находящееся ровно посередине (медиану массива). Количество слов нечетно.
Sam is a multi-file text editor based on structural regular expressions It was originally designed in the early 1980s at Bell Labs by Rob Pike with the help of Ken Thompson and other Unix developers for the Blit windowing terminal running on Unix it was later ported to other systems Sam follows a classical modular Unix aesthetic It is internally simple its power leveraged by the composability of a small command language and extensibility through shell integration


Информатика (82 баллов) | 67 просмотров
Дан 1 ответ
0 голосов

Print(sorted("Sam is a multi-file text editor based on structural regular expressions It was originally designed in the early 1980s at Bell Labs by Rob Pike with the help of Ken Thompson and other Unix developers for the Blit windowing terminal running on Unix it was later ported to other systems Sam follows a classical modular Unix aesthetic It is internally simple its power leveraged by the composability of a small command language and extensibility through shell integration".split())[39])

(286 баллов)