#CCBCHBAHAI0000136. Cộng hai mảng theo từng vị trí (Elementwise Sum of Two Arrays)
Cộng hai mảng theo từng vị trí (Elementwise Sum of Two Arrays)
Elementwise Sum of Two Arrays
Source: C Primer Plus
Version: Phuoc Hung OJ Extended
Problem Statement
Given two integer arrays and of the same length, construct by adding corresponding elements:
The element order must not be changed.
Input
- The first line contains .
- The second line contains the integers of .
- The third line contains the integers of .
Output
Print one line containing separated by single spaces.
Subtasks
Subtask 1 (100 points): , , and .
Examples
Input
5
1 2 3 4 5
10 -2 0 7 1
Output
11 0 3 11 6
Explanation
Add corresponding positions: , , , , and . Thus .