| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144481 | 岑思烁 | 求点积 | C++ | Accepted | 1 MS | 280 KB | 283 | 2026-01-23 11:38:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int b[1001],p[1001]; int a; long long c=0; cin>>a; for(int s = 1;s<=a;s++){ cin>>p[s]; } for(int s = 1;s<=a;s++){ cin>>b[s]; } for(int s = 1;s<=a;s++){ c+=p[s]*b[s]; } cout<<c; return 0; }