#Z15107. 向量点积计算
向量点积计算
Description
In linear algebra and computational geometry, the dot product of vectors is a highly important operation. Given two -dimensional vectors and , compute the 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
A single integer representing the result of the dot product of the two vectors.
3
1 4 6
2 1 5
36