Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110309 胡海峰老师 求点积 Python3 Accepted 38 MS 3760 KB 177 2025-02-16 13:19:15

Tests(10/10):


Code:

n = int(input()) a = input().split() b = input().split() s = 0 #把所有求和项加起来放在s中 for i in range(n): s = s + int(a[i]) * int( b[i]) print(s)