Question
Gift Hamper Multiplication
A gifting app has
Input
The first line contains KaTeX can only parse string typed expression. For each test case, the first line contains KaTeX can only parse string typed expression. The second line contains KaTeX can only parse string typed expression integers.
Output
For each test case, print KaTeX can only parse string typed expression integers: answer for each position.
Example
Example 1:
Input
Example 2:
Input
Input
1
4
1 2 3 4Output24 12 8 6Example 2:
Input
1
4
0 2 3 4Output24 0 0 0