#CCBCHBAHAI0000133. Nhân mọi phần tử với k (Multiply Every Element by k)
Nhân mọi phần tử với k (Multiply Every Element by k)
Multiply Every Element by k
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer array and an integer , multiply every array element by .
For each index ,
Print the transformed array in its original index order.
Input
- The first line contains .
- The second line contains integers .
- The third line contains the integer .
Output
Print one line with the values , separated by single spaces.
Subtasks
Subtask 1 (100 points): , , . Every result fits in signed 64-bit long long.
Examples
Input
5
2 -3 0 4 10
-2
Output
-4 6 0 -8 -20
Explanation
With , the products are , , , , and .