#P7457. [2017年杭电多校]Kanade's convolution
[2017年杭电多校]Kanade's convolution
Kanade's convolution
Problem Description
Give you two arrays and . Please calculate array £º
You just need to print
Input
There is only one test case. The first line consists of one integer . The second line consists of integers The third line consists of integers
Output
Output only one integer means the answer.
Sample Input
2
1 2 3 4
5 6 7 8
Sample Output
568535691
Source
2017 Multi-University Training Contest - Team 3