| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75566 | sh25_shenpy | 向量点积计算 | C++ | 通过 | 0 MS | 252 KB | 299 | 2025-12-07 19:59:04 |
#include <bits/stdc++.h> using namespace std; int s[1010],t[1010]; int main( ) { int n,x=0; cin>>n; for(int i=0;i<n;i++) { cin>>s[i];} for(int j=0;j<n;j++){ cin>>t[j];} for(int k=0;k<n;k++){ x+=s[k]*t[k]; } cout<<x; return 0; }