| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80140 | 石晋骁 | 求点积 | C++ | Accepted | 1 MS | 284 KB | 285 | 2024-07-11 11:19:55 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,sum = 0; int a[n],b[n]; cin >> n; for(int i = 0;i< n;i++){ cin >> a[i]; } for(int j = 0;j< n;j++){ cin >> b[j]; } for(int k = 0;k< n;k++){ sum = sum+a[k]*b[k]; } cout << sum; return 0; }