Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75565 sh25_shenpy 向量点积计算 C++ 编译错误 0 MS 0 KB 299 2025-12-07 19:56:51

Tests(0/0):


#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[i];} for(int k=0;k<n;k++){ x+=s[i]*t[i]; } cout<<x; return 0; }


测评信息: