#CCBCHBAHAI0000137. Tích hai mảng theo từng vị trí (Elementwise Product of Two Arrays)
Tích hai mảng theo từng vị trí (Elementwise Product of Two Arrays)
Elementwise Product of Two Arrays
Source: Problem Solving and Program Design in C
Version: Phuoc Hung OJ Extended
Problem Statement
Given two integer arrays and of equal length, compute their elementwise product:
Print the full array .
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 . Every product fits in signed 64-bit long long.
Examples
Input
5
2 -3 4 0 10
5 2 -1 7 -2
Output
10 -6 -4 0 -20
Explanation
The corresponding products are , , , , and .