#P304. 练51.1 向量点积计算
练51.1 向量点积计算
Description
In linear algebra and computational geometry, vector dot product is a very important operation.
Given two -dimensional vectors and , calculate their dot product .
Input Format
The first line contains an integer ();
The second line contains integers;
The third line contains integers;
Adjacent integers are separated by a single space. The absolute value of each integer does not exceed .
Output Format
Output the vector dot product.
Sample
7
7 8 9 4 8 7 8
3 7 4 7 9 9 7332
Related
In following homework: