Оксана Анна
?>

Отсортировать слова в порядке лексикографического возрастания и в качестве ответа вывести слово, находящееся ровно посередине (медиану массива количество слов нечетно. 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

Информатика

Ответы

zuelv
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])
Анатольевич1707

C++

#include <iostream>

using namespace std;

int main()

{

setlocale(LC_ALL, "RUS");

int a, b, c;

cout << "Введите сторону a: ";

cin >> a;

cout << "Введите сторону b: ";

cin >> b;

cout << "Введите сторону c: ";

cin >> c;

if (a + b > c)

{

 if (a + c > b)

 {

  if (a + c > b)

  {

   if (b + c > a)

   {

    if (a + b > c)

    {

     if (a + c > b)

     {

      if (b + c > a)

      {

       cout << "Треугольник существует" << endl;

      }

     }

    }

   }

  }

 }

 

}

else

{

 cout << "Треугольник не существует!" << endl;

}

return 0;

}

bieku68

Короче. Вот код.

def matrix_gen(gen, n, m):    Matrix = [];    for i in range(n):        a = [];        for j  in range(m):            a.append(gen[j]);        Matrix.append(a);    return Matrix;

Объяснение

Сначало ты инициализируешь функицю с названием "matrix_gen", которая принимает 3 параметра, 'gen' -- это генератор которые ты будешь использовать. 'n' & 'm' это размер матрицы.

Второй строчкой ты инициалихируешь пустой массив, которые похже заполнишь. Третей строчкой ты в for цикле обходишь все строки матрицы, они же подмассивы массива  Matrix, просто 'a'. Делаем мы это 'n' раз.

Четвётрой строчкой ты инициализируешь массив(ы, мы в цикле) 'a', и следующей строчкой заполняешь уже его. Так же в for цикле. Всего в нём будет 'm' элементов.

Надеюсь решение правильное. Честно говоря у тебя вопрос очень странно поставлен.

Ответить на вопрос

Поделитесь своими знаниями, ответьте на вопрос:

Отсортировать слова в порядке лексикографического возрастания и в качестве ответа вывести слово, находящееся ровно посередине (медиану массива количество слов нечетно. 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
Ваше имя (никнейм)*
Email*
Комментарий*

Популярные вопросы в разделе

Adabir20156806
ver2bit29
lubavarif83
annakorotaev3
mulyugina365
delta88
kuharhuks
АртакСергеевич1723
German
marinatehnomaster21
Олег86
nkaminskaja
Maria095096
forosrozhkov
sashakrav