ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN_114 Midterm A > задача:


9. 50499 - Table to Row

CEN_114 Midterm A

Старт: 14.мая.2020 в 00:00:01
Финиш: 31.мая.2020 в 23:55:59
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (1)

Задачи турнира

• 14. 51094 - Passing the course
• 15. 50804 - Marathon
• 3. 50390 - Total Salary Paid
• 4. 50528 - Rock-Scissors-Paper
• 5. 51087 - Are they the same?
• 6. 51092 - Even and Odd
• 7. 50449 - The biggest result
• 8. 51146 - Popular Baby Names
• 9. 50499 - Table to Row

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Table to Row

Civil engineering students frequently work on matrices and sometimes they change a matrix to a row vector.

Question: They are asking from you to write a program that takes a matrix and returns it as a row vector in such a way:

  • first you show the numbers in the first column
  • then you show the numbers in the second column, etc.

Input specification
You will be given two integers in the beginning: the number of rows (m) and the number of columns (n). Then in the following m lines, you will be n integers where m and n are between 1 and 200 and the numbers given are integers between -1e8 and +1e8.

Output specification
Show the matrix as a row vector.

Sample Input I
4 3
8 8 6
-3 5 5
0 -5 1
1 -4 5
Sample Output I
8 -3 0 1 8 5 -5 -4 6 5 1 5


Для отправки решений необходимо выполнить вход.

www.contester.ru