| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134252 | 胡海峰老师 | 求点积 | C++ | Accepted | 1 MS | 276 KB | 347 | 2025-10-26 10:28:55 |
#include <bits/stdc++.h> using namespace std; int main(){ int a[1008]; int b[1008]; int n; cin >> n; for(int i = 1;i <= n;i++) { cin >> a[i]; } for(int i = 1;i <= n;i++) { cin >> b[i]; } // done of inputting int s = 0; for(int j = 1;j <= n;j++) { s = s + a[j] * b[j]; } cout << s; return 0; }