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

Сборники > Kovrov IT > задача:


51196 - The sum of two arrays

Задачи сборника

• 50912 - Trip to Librazhd
• 50914 - Buy 3, Pay 2
• 50563 - Modul i gjate
• 50565 - Numra binare
• 50569 - Lendet me zgjedhje per kla...
• 50594 - Transformimet
• 51182 - Count and Sum 2
• 51193 - The max element of k-th co...
• 51196 - The sum of two arrays
• 51197 - Even and odd Numbers
• s
• s
• 010. 50381 - Sum of the numbers
• 125. 50538 - Sum of kth Diagonal
• 140. 50599 - Shuma e katroreve te ...
• 15-SprPrE1-80. 50741 - DNA Distance
• 155. 50334 - What is the class aver...

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

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

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

The sum of two arrays 

 

You will be first given one number (n) which is followed by two series of integers (n space-separated values). Calculate the sum of two series and show them.

Input specification
You will be given one integers (n) in the first line,   and 1 ≤ n ≤ 10.000. The following two lines contain a two  series of integer numbers a[n] and b[n] where   -1000 ≤ a[n], b[n] ≤ 1000.

Output specification
You will give one serie, which is the sum serie of two input series.

Sample Input I 
5
3 6 9 5 4
2 5 6 2 7

Sample Input II
7
5 8 4 -9 3 2
-6 9 -5 8 2 5

Sample Output I
5 11 15 7 11

Sample Output II
14 3 12 -7 8 2 -6

 

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

www.contester.ru