HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Epoka Science Olympiad 2016 > problem:


10-2. 50963 - Append Two Arrays

Epoka Science Olympiad 2016

Start: Apr.11.2016 at 02:07:57 PM
Finish: Apr.24.2016 at 05:00:00 AM
The contest is finished!
• Contest scoreboard

Contest problems

• 10-1. 50962 - Find the Character
• 10-2. 50963 - Append Two Arrays
• 10-3. 50964 - Increasing or Decreasing
• 10-4. 50965 - Draw the Pattern
• 10-5. 50966 - TVSH
• 10-P1. 50901 - Sum of Cubes-1
• 10-P2. 50902 - Translate Score into...
• 10-P3. 50903 - Basic Math Calculator
• 10-P4. 50904 - Print All Prime Numbers
• 10-P5. 50905 - Convert KPH to MPH

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