#K59372. Element-wise Sum of Two Lists
Element-wise Sum of Two Lists
Element-wise Sum of Two Lists
In this problem, you are given two lists of integers of equal length. Your task is to compute a new list where each element is the sum of the corresponding elements in the given lists.
For example, if you are given the lists (L1 = [a_1, a_2, \dots, a_n]) and (L2 = [b_1, b_2, \dots, b_n]), you need to produce a list (L3) such that (L3[i] = a_i + b_i) for (1 \le i \le n).
inputFormat
The input is read from standard input and has the following format:
- The first line contains a single integer \(n\) (where \(0 \le n \le 10^4\)), which denotes the number of elements in each list.
- The second line contains \(n\) integers separated by spaces, representing the first list.
- The third line contains \(n\) integers separated by spaces, representing the second list.
outputFormat
Print a single line to standard output containing (n) integers separated by a single space. Each integer should be the sum of the corresponding elements from the two input lists.## sample
3
1 2 3
4 5 6
5 7 9
</p>