HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50963 - Append Two Arrays

Section problems

• 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

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

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