| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84683 | sh25_chenyj | 向量点积计算 | C++ | 通过 | 0 MS | 244 KB | 351 | 2026-02-19 11:48:30 |
#include<bits/stdc++.h> using namespace std; int main() { int n, cnt = 0; cin>>n; int ls1[n]; int ls2[n]; // cout << fixed << setprecision(10) << ce(a); for(int i = 0; i < n; i++){ cin>>ls1[i]; } for(int j = 0; j < n; j++){ cin>>ls2[j]; } for(int k = 0; k < n; k++){ cnt += ls1[k]*ls2[k]; } cout<<cnt; return 0; }