F - Convolution
Editorial
/


Time Limit: 5 sec / Memory Limit: 1024 MB
配点 : 点
問題文
整数列 、 が与えられます。整数列 を求めてください。
ただし、
です
制約
入力Copy
Copy
... ...
出力Copy
Copy
...
入力例 1Copy
Copy
4 5 1 2 3 4 5 6 7 8 9
出力例 1Copy
Copy
5 16 34 60 70 70 59 36
入力例 2Copy
Copy
1 1 10000000 10000000
出力例 2Copy
Copy
871938225
Score : points
Problem Statement
You are given two integer arrays and . Calculate the array , defined by .
Constraints
- All values in Input are integer.
Input
Input is given from Standard Input in the following format:
... ...
Output
Print the answer in the following format:
...
Sample Input 1Copy
Copy
4 5 1 2 3 4 5 6 7 8 9
Sample Output 1Copy
Copy
5 16 34 60 70 70 59 36
Sample Input 2Copy
Copy
1 1 10000000 10000000
Sample Output 2Copy
Copy
871938225