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

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


9. 50529 - Row to Table

CEN_114 Midterm B

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

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

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

• 14. 51136 - Class Average 2
• 15. 50734 - Product Info (In Srt)
• 2. 50453 - The Cubic Difference
• 3. 50346 - The Biggest Date
• 5. 50380 - Sum of the Numbers in t...
• 6. 50443 - Dajte Express
• 7. 50496 - Falling Bricks
• 8. 51123 - Mr. Li Criteria
• 9. 50529 - Row to Table

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

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

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

Row to Table

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

Question: They are asking from you to write a program that takes a row vector and returns it as a matrix in such a way: if you have (r) rows and (c) columns of numbers; the first r numbers will be shown in the first column; the second r numbers will be shown in the second column; etc.

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

Output specification
Show the matrix.

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


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

www.contester.ru