|Contests||Virtual Contests||Problems||Submit||Runs Status||Rank List||Forum|
a1 * b1 + a2 * b2 + ... + an * bn.
The first line of the input gives an integer t (t < 100), which is the number of test cases. Each test case start with an integer n (0 < n < 10), denoting the dimension of two given vectors. The following two lines give two vectors. Each contains n integers all in the range of [-1000, 1000].
For each test case, output a single integer which is the dot product of two given vectors.
1 3 1 2 3 -1 0 3