#CCBCHBAHAI0000132. Cộng hằng số vào mọi phần tử (Add a Constant to Every Element)
Cộng hằng số vào mọi phần tử (Add a Constant to Every Element)
Add a Constant to Every Element
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer array and an integer , add the same constant to every array element.
After the transformation,
Print in increasing index order.
Input
- The first line contains .
- The second line contains integers .
- The third line contains .
Output
Print one line containing integers separated by single spaces.
Subtasks
Subtask 1 (100 points): , , .
Examples
Input
5
1 -2 0 7 10
3
Output
4 1 3 10 13
Explanation
For and , the transformed values are , , , , and . Therefore the output array is 4 1 3 10 13.