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

Разделы > Unsorted > задача:


50963 - Append Two Arrays

Задачи раздела

• 50907 - Second Largest
• 50910 - Flipping Coins
• 50950 - Biggest Number
• 50957 - Divisible by 3
• 50975 - Cinema Tickets
• 50959 - Draw the Pattern
• 50898 - Draw the Pattern
• 50961 - Order of 3 Runner
• 50963 - Append Two Arrays
• 50968 - Number of Letters
• 50969 - Chef and Feedback
• 50888 - Extracting Digits
• 50893 - Print All Numbers
• 51109 - Integer to English
• 50905 - Convert KPH to MPH
• 50962 - Find the Character
• 50974 - Area of the circle

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

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

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

Append Two Arrays

Write a program which takes 2 arrays, A with m integers and B with n integers (m>=0, n>=0). Create another array C with x integers (x= m + n).

The program should put into array C the appending of B to A, the first m integers of C from array A, the latter n from B. Then the program should display C.

Input:

-In the first line you will get m (number integers in array A) followed by m integers.
-In the second line you will get n (number integers in array B) followed by n integers.

Output: All the numbers in the array C separated by a space.

Sample Input1:

Sample Input2:

3

10 20 30

5

40 50 60 70 80

1

5

2

7 9

Sample Output1:

Sample Output2:

10 20 30 40 50 60 70 80

5 7 9

 

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

www.contester.ru